aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-05-07 08:12:20 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-05-07 08:12:20 -0400
commitdb9a20bd3bec3b28fc3bb18633206f8ec848e04c (patch)
treecba7b1827050ddc880568fed3b69d533089cda48
parentFinal tweeks. (diff)
downloadPhotoFloat-db9a20bd3bec3b28fc3bb18633206f8ec848e04c.tar.xz
PhotoFloat-db9a20bd3bec3b28fc3bb18633206f8ec848e04c.zip
Caching.
-rw-r--r--web/.htaccess13
1 files changed, 13 insertions, 0 deletions
diff --git a/web/.htaccess b/web/.htaccess
index 6bd5396..f86bccb 100644
--- a/web/.htaccess
+++ b/web/.htaccess
@@ -1,5 +1,18 @@
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript application/json
+<FilesMatch "\.(jpg|otf|ico)$">
+ Header set Cache-Control "max-age=29030400, public"
+</FilesMatch>
+<FilesMatch "\.(css|js)$">
+ Header set Cache-Control "max-age=5184000, public"
+</FilesMatch>
+<FilesMatch "index.html">
+ Header set Cache-Control "max-age=2678400, public"
+</FilesMatch>
+<FilesMatch "\.json$">
+ Header set Cache-Control "max-age=86400, public"
+</FilesMatch>
+
<FilesMatch "Makefile">
deny from all
</FilesMatch>