From 0c2763e3594f3640a5d248256a725c1363b957c8 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Mon, 21 Mar 2022 10:53:30 +0100 Subject: [PATCH] adjust caching --- static/.htaccess | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/static/.htaccess b/static/.htaccess index 58eeb9f2..88ce858a 100644 --- a/static/.htaccess +++ b/static/.htaccess @@ -13,4 +13,23 @@ AddOutputFilterByType DEFLATE image/png AddOutputFilterByType DEFLATE image/gif AddOutputFilterByType DEFLATE image/jpeg AddOutputFilterByType DEFLATE image/svg+xml - \ No newline at end of file + + + +# Turn on the module. +ExpiresActive on +# Set the default expiry times. +ExpiresDefault "access plus 2 days" +ExpiresByType image/jpg "access plus 1 month" +ExpiresByType image/gif "access plus 1 month" +ExpiresByType image/jpeg "access plus 1 month" +ExpiresByType image/png "access plus 1 month" +ExpiresByType text/css "access plus 1 month" +ExpiresByType text/javascript "access plus 1 month" +ExpiresByType application/javascript "access plus 1 month" +ExpiresByType application/x-shockwave-flash "access plus 1 month" +ExpiresByType text/css "now plus 1 month" +ExpiresByType image/ico "access plus 1 month" +ExpiresByType image/x-icon "access plus 1 month" +ExpiresByType text/html "access plus 600 seconds" +