Setting Cache-Control headers to "max-age=0, no-cache, no-store, no-transform, private".
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
parent
1ac0afb9cc
commit
363e65faa7
2 changed files with 6 additions and 1 deletions
2
debian/apache2.postinst
vendored
2
debian/apache2.postinst
vendored
|
@ -56,7 +56,7 @@ enable_default_conf()
|
|||
if is_fresh_install $@ ; then
|
||||
for conf in charset localized-error-pages other-vhosts-access-log \
|
||||
security serve-cgi-bin \
|
||||
csp hsts modern-cookies modern-ssl ; do
|
||||
csp hsts modern-cookies modern-ssl no-cache ; do
|
||||
a2enconf -m -q $conf
|
||||
done
|
||||
fi
|
||||
|
|
5
debian/config-dir/conf-available/no-cache.conf
vendored
Normal file
5
debian/config-dir/conf-available/no-cache.conf
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
# /etc/apache2/conf-available/no-cache.conf
|
||||
|
||||
<IfModule mod_headers.c>
|
||||
Header always set Cache-Control "max-age=0, no-cache, no-store, no-transform, private"
|
||||
</IfModule>
|
Loading…
Add table
Add a link
Reference in a new issue