@@ -131,7 +131,7 @@ LoadModule log_config_module modules/mod_log_config.so
131131LoadModule env_module modules/mod_env.so
132132#LoadModule mime_magic_module modules/mod_mime_magic.so
133133#LoadModule cern_meta_module modules/mod_cern_meta.so
134- # LoadModule expires_module modules/mod_expires.so
134+ LoadModule expires_module modules/mod_expires.so
135135LoadModule headers_module modules/mod_headers.so
136136#LoadModule ident_module modules/mod_ident.so
137137#LoadModule usertrack_module modules/mod_usertrack.so
@@ -231,21 +231,28 @@ SSLProxyEngine On
231231
232232# Cache rules
233233
234- # Add cache for web node files
235- ; <FilesMatch "\.(js|wasm)$" >
236- ; Header set Cache-Control "public, max-age=31536000 , immutable"
237- ; </FilesMatch >
238-
239234# REMOVE CACHE
240- <filesMatch "\.(html|htm|js|css)$">
241- FileETag None
242- <ifModule mod_headers.c>
243- Header unset ETag
244- Header set Cache-Control "max-age=0 , no-cache, no-store, must-revalidate"
245- Header set Pragma "no-cache"
246- Header set Expires "Wed, 11 Jan 1984 05 :00 :00 GMT"
247- </ifModule>
248- </filesMatch>
235+ <IfModule mod_expires.c >
236+ ExpiresActive On
237+ ExpiresByType text/html "access plus 0 seconds"
238+ ExpiresByType text/htm "access plus 0 seconds"
239+ ExpiresByType application/javascript "access plus 0 seconds"
240+ ExpiresByType text/javascript "access plus 0 seconds"
241+ ExpiresByType application/x-javascript "access plus 0 seconds"
242+ ExpiresByType text/css "access plus 0 seconds"
243+ ExpiresByType application/wasm "access plus 0 seconds"
244+ ExpiresByType application/octet-stream "access plus 0 seconds"
245+ ExpiresByType application/json "access plus 0 seconds"
246+ ExpiresByType application/postcard "access plus 0 seconds"
247+ ExpiresByType application/octet-stream "access plus 0 seconds"
248+ </IfModule >
249+
250+ <IfModule mod_headers.c >
251+ Header unset ETag
252+ Header unset Last-Modified
253+ Header set Cache-Control "max-age=0 , no-cache, no-store, must-revalidate"
254+ Header set Pragma "no-cache"
255+ </IfModule >
249256
250257
251258# Make sure mod_headers is enabled
0 commit comments