Permalink
Browse files

Add expires headers to media. [bug 614621]

  • Loading branch information...
1 parent 1528988 commit cc80ead95bf417749ca583796c63865ff58c34da James Socol committed Nov 29, 2010
Showing with 16 additions and 0 deletions.
  1. +16 −0 media/.htaccess
View
16 media/.htaccess
@@ -0,0 +1,16 @@
+# Set far-future Expires headers for static media
+ExpiresActive on
+
+ExpiresDefault "access plus 1 week"
+ExpiresByType text/css "access plus 1 year"
+ExpiresByType text/javascript "access plus 1 year"
+ExpiresByType image/png "access plus 1 month"
+ExpiresByType image/jpeg "access plus 1 month"
+ExpiresByType image/gif "access plus 1 month"
+ExpiresByType image/vnd.microsoft.icon "access plus 1 month"
+ExpiresByType video/webm "access plus 1 week"
+ExpiresByType video/ogg "access plus 1 week"
+ExpiresByType video/x-flv "access plus 1 week"
+ExpiresByType application/x-shockwave-flash "access plus 1 week"
+
+FileETag MTime

0 comments on commit cc80ead

Please sign in to comment.