Minor changes.
This commit is contained in:
parent
ce45ae55ef
commit
37db1402c5
19
web/.htaccess
Normal file
19
web/.htaccess
Normal 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>
|
||||||
|
|
@ -8,5 +8,5 @@ ls -1 *.css|grep -Ev "min.css$" | while read cssfile; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# merge all into one single file
|
# merge all into one single file
|
||||||
rm -f scripts.min.css
|
rm -f styles.min.css
|
||||||
cat *.min.css > scripts.min.css
|
cat *.min.css > styles.min.css
|
||||||
|
Loading…
Reference in New Issue
Block a user