Web server cache settings are hurting us
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
drizzle.org |
Fix Released
|
Undecided
|
Andrew Hutchings |
Bug Description
Our cache headers are set so bad that someone visiting the main site or docs a month later will still see the content from a month ago rather than current content.
* expires header is set way too high (year 2037)
* cache-control way too high (315360000 seconds)
There are lots of ways to work around this but they would be hard for us to implement. We need to fix this by using:
* cache-control: 3600; must-revalidate
* expires header set for now+1 hour
* use etags
Also as a side note we should be using deflate (or gzip at a push, browsers support deflate better) for html, css and js (ideally I'd like to use a minimizer too, but we are a long way from that stage).
I can do all this easily in httpd and lighttpd, but have no idea in nginx.
Changed in drizzle.org: | |
assignee: | nobody → Monty Taylor (mordred) |
Changed in drizzle.org: | |
assignee: | Monty Taylor (mordred) → Michael Shadle (mshadle) |
ah, sorry, webkit was lying to me, we are using gzip.