-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why you added fixed "If-Modified-Since" header? #325
Comments
Solution for globally disable this behaviour: app/scripts/app.coffee
|
holy moly, this cost me so much brain damage actually. this lets you run into wall when you do any other requests than to the api you are authenticated with. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$httpProvider.defaults.headers[method]['If-Modified-Since'] = 'Mon, 26 Jul 1997 05:00:00 GMT'
Why? What this date means? Is it your birthday?
Do you understand how it affects on HTTP caching? You have totally broken all browser caching mechanism. The browser should have an ability to decive what to cache or not, and the server can answer with 200 (content) or 304 (without content) depends on real datetime in this header.
The text was updated successfully, but these errors were encountered: