Browse code

Add cache policy to .htaccess

Joseph Weston authored on 06/12/2021 04:05:25
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,19 @@
1
+<IfModule mod_expires.c>
2
+  ExpiresActive on
3
+
4
+  ExpiresDefault "access plus 2 days"
5
+
6
+  ExpiresByType text/javascript "access plus 600 seconds"
7
+  ExpiresByType application/javascript "access plus 600 seconds"
8
+
9
+  ExpiresByType text/html "access plus 1 month"
10
+  ExpiresByType text/css "access plus 1 month"
11
+
12
+  ExpiresByType image/jpg "access plus 1 month"
13
+  ExpiresByType image/svg+xml "access 1 month"
14
+  ExpiresByType image/gif "access plus 1 month"
15
+  ExpiresByType image/jpeg "access plus 1 month"
16
+  ExpiresByType image/png "access plus 1 month"
17
+  ExpiresByType image/ico "access plus 1 month"
18
+  ExpiresByType image/x-icon "access plus 1 month"
19
+</IfModule>