-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
All non 200 responses get cache-control=no-cache header #1984
Comments
301, 302, etc are also of concern here. This is pretty big for us as there are a number of not found cases and redirects that we want to push our caching out to but with the way the header method is setup we can't even do an explicit header set to get the behavior that we need. |
This does not feel like it should be a server level property, but the On Saturday, October 4, 2014, Eran Hammer notifications@github.com wrote:
Sent from my mobile device |
Feel free to open another issue for route level override. |
I think what we really need is to have full control over cache-control header when we need it. |
Open a new issue. Overriding existing cache-control is a bug. |
Done. #2011 |
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions. |
https://github.com/hapijs/hapi/blob/master/lib/response/headers.js#L56-L58
Nowhere RFC 2616 prescribes this behavior and the framework should not enforce it.
The use case in mind is to be able to cache 404.
The text was updated successfully, but these errors were encountered: