translate / translate-project

The Translate Project
4 stars 3 forks source link

HTTP Expire header #2935

Closed arky closed 11 years ago

arky commented 11 years ago

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

transl8bzimport commented 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.

transl8bzimport commented 11 years ago

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.

dupuy commented 11 years ago

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.