Minor changes.

This commit is contained in:
Joachim Tingvold 2015-05-05 10:08:51 +02:00
parent ce45ae55ef
commit 37db1402c5
2 changed files with 21 additions and 2 deletions

19
web/.htaccess Normal file
View File

@ -0,0 +1,19 @@
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=3600, public"
</FilesMatch>
<FilesMatch "Makefile">
deny from all
</FilesMatch>

View File

@ -8,5 +8,5 @@ ls -1 *.css|grep -Ev "min.css$" | while read cssfile; do
done
# merge all into one single file
rm -f scripts.min.css
cat *.min.css > scripts.min.css
rm -f styles.min.css
cat *.min.css > styles.min.css