Skip to content

Commit

Permalink
v1.1.0 - Added cache
Browse files Browse the repository at this point in the history
  • Loading branch information
nicxlau committed Sep 17, 2019
1 parent 8c39244 commit 606a94c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .htaccess
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
<IfModule mod_headers.c>
<FilesMatch "\.(css|js|png|jpg|jpeg|gif|swf|svg|eot|woff|woff2|ttf|docx|pdf|rtf|docm|dotx|dotm|docb)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
</IfModule>

0 comments on commit 606a94c

Please sign in to comment.