Closed arky closed 11 years ago
Commit pushed to master at https://github.com/translate/pootle
https://github.com/translate/pootle/commit/aa5d65258ecad3430bbb6843afbf6b9a90f49834 Generate HTTP Expires headers
Per Django tuning suggestions in bug #2935, this sets image expirations to 2 hours, and (versioned) CSS/Javascript to 10 years.
Commit pushed to master at https://github.com/translate/pootle
https://github.com/translate/pootle/commit/c2bfe93125da30e75c84e61641f9d9d14f222f19 Add public cache control for proxies
This change (also for bug #2935) allows proxies to do caching, as well as browsers.
These are now live on mozilla, pootle, and staging.l.o.
Mozilla and Pootle already had 2 day expire headers by default, so I made the 2 hour headers for images into 10 days. (Versioned) CSS and JS are still at 10 years.
Mozilla and Pootle already had the following as well:
So I left that in, and incorporated it in with the other changes for this ticket.
Please add http expire headers to apache configuration.
Apache2
ExpiresActive On
ExpiresByType image/jpg "access plus 2 hours" ExpiresByType image/png "access plus 2 hours" ...
ExpiresByType text/css "access plus 10 years" ExpiresByType application/x-javascript "access plus 10 years"
Source: http://www.turnkeylinux.org/blog/django-compress