From f5e1b4d2ce32685f441ef966631931e8aea987ee Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Tue, 26 Sep 2023 15:31:04 +0200 Subject: [PATCH] cache --- static/.htaccess | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 static/.htaccess diff --git a/static/.htaccess b/static/.htaccess new file mode 100644 index 00000000..26433939 --- /dev/null +++ b/static/.htaccess @@ -0,0 +1,24 @@ +<IfModule mod_expires.c> + ExpiresActive On + + AddType application/font-woff .woff + AddType application/font-woff2 .woff2 + + ExpiresByType image/png "access plus 1 year" + ExpiresByType image/gif "access plus 1 year" + ExpiresByType image/jpeg "access plus 1 year" + ExpiresByType image/svg "access plus 1 year" + ExpiresByType image/svg+xml "access plus 1 year" + ExpiresByType text/css "access plus 1 year" + ExpiresByType text/js "access plus 1 year" + ExpiresByType text/javascript "access plus 1 year" + ExpiresByType application/javascript "access plus 1 year" + ExpiresByType application/x-javascript "access plus 1 year" + + ExpiresByType font/woff "access plus 1 year" + ExpiresByType application/font-woff "access plus 1 year" + ExpiresByType application/x-font-woff "access plus 1 year" + ExpiresByType font/woff2 "access plus 1 year" + ExpiresByType application/font-woff2 "access plus 1 year" + ExpiresByType application/x-font-woff2 "access plus 1 year" +</IfModule> \ No newline at end of file -- GitLab