Apache: Remove cache-control header for HTML responses

raw

site.conf

1
2
3
4
5
6
7
8
# remove header for html responses
Header always    unset Cache-Control "expr=%{CONTENT_TYPE} =~ m#text/html#"
Header onsuccess unset Cache-Control "expr=%{CONTENT_TYPE} =~ m#text/html#"
 
# override header for html responses
Header onsuccess unset Cache-Control
Header always    set Cache-Control "max-age=0, no-cache, no-store" "expr=%{CONTENT_TYPE} =~ m#text/html#"
 
Christian Weiske Christian Weiske
owner

History