[spriteme] r34 committed - basics - gzip, expires, no dir listing, block some files

10 views
Skip to first unread message

codesite...@google.com

unread,
Feb 27, 2013, 2:57:56 PM2/27/13
to spri...@googlegroups.com
Revision: 34
Author: stevesoudersorg
Date: Wed Feb 27 11:57:48 2013
Log: basics - gzip, expires, no dir listing, block some files
http://code.google.com/p/spriteme/source/detail?r=34

Added:
/trunk/.htaccess

=======================================
--- /dev/null
+++ /trunk/.htaccess Wed Feb 27 11:57:48 2013
@@ -0,0 +1,22 @@
+DirectoryIndex index.php
+Options -Indexes
+
+<FilesMatch "(\.inc|private|db.php|utils.php)">
+order allow,deny
+deny from all
+</FilesMatch>
+
+
+# Compress/gzip html, XML, css and js and fonts and CSV
+<IfModule mod_deflate.c>
+AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
application/x-javascript application/javascript font/ttf
application/octet-stream
+</IfModule>
+
+
+# Add a far future Expires header to .gif, .jpg, .css and .js.
+# TODO - Need to add a versioning system to resource URLs to make them
cacheable.
+<FilesMatch "\.(png|gif|jpg|js|css|ico)$">
+ExpiresActive On
+ExpiresDefault "access plus 1 week"
+Header set ETag ""
+</FilesMatch>
Reply all
Reply to author
Forward
0 new messages