-
Notifications
You must be signed in to change notification settings - Fork 197
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
Missing Cache Control Headers #2
Comments
I agree. And even more important if you know that Cody caches these (static) images in memory, so they can't change anyway as long as they are in the ram cache (until they get thrown out - or the server is restarted) Care to make me the examples / tell me what to do? I'll incorporate it in the static server (images, javascript and css files) asap. Johan C. |
Well, I've never had to mess with it before, because I believe the default settings in Apache/nginx send them. But based on http://www.mobify.com/blog/beginners-guide-to-http-cache-headers/ I would think updating like so would work:
in Static.js would become
86,400 being one day in seconds. So you could play with that depending on how long you would like your images to be cached. |
Ideally that max-age is something you'd set in the site config. |
Ok fixed and pushed to Git. |
The lack of cache control headers on the main background image is causing Chrome to reload that image on every page.
The text was updated successfully, but these errors were encountered: