Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

caching .htaccess config. correctly?

edited August 2012 in Vanilla 2.0 - 2.8

Is my .htaccess correctly configured with vanilla forum?

< IfModule mod_headers.c >

Turn on Expires and set default to 0

ExpiresActive On
ExpiresDefault A0

Set up caching on media files for 1 year (forever?)


ExpiresDefault A29030400
Header append Cache-Control "public"

Set up caching on media files for 1 week


ExpiresDefault A604800
Header append Cache-Control "public"

Set up 2 Hour caching on commonly updated files


ExpiresDefault A604800
Header append Cache-Control "proxy-revalidate"

Force no caching for dynamic files


ExpiresActive Off
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"

Sign In or Register to comment.