Error headers: ap_headers_output_filter () after entering the cache header in the htaccess file

Receive error: [debug] mod_headers.c (663): headers: ap_headers_output_filter ()

after I included this in the htaccess file:

# 6 DAYS
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=518400, public"
</FilesMatch>

# 2 DAYS
<FilesMatch "\.(xml|txt)$">
Header set Cache-Control "max-age=172800, public, must-revalidate"
</FilesMatch>

# 2 HOURS
<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=7200, must-revalidate"
</FilesMatch>

Any help is appreciated, what can I do to fix this?

+3
source share
1 answer

Your configuration looks great. You should simply change LogLevel from debug to alert (or whatever your favorite level).

+11
source

Source: https://habr.com/ru/post/1744974/


All Articles