HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
HTTP Header Location?
somerandomfellow
New
I see that the HSTS/preload/etc options are set in the conf. But where are the frame-ancestors 'self' and default cache-control headers for Vanilla? The default seems to be set to public, max-age=120?
Setting directives in the nginx conf or .htaccess can't actually override the headers.
Tagged:
0
Comments
2 Minutes is approprite for dynamic content like forums. If you want to set the cache control for static assets like images, that should be done through server config (like .htaccess). The default .htaccess does this:
CSP frame ancestors can be extended by adding trusted domains (e.g. when embedding or adding to "Garden.TrustedDomains" in the config).
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
I have my apache/nginx and cloudflare caching perfectly set up along with memcached/etc.
However, with the native response set by Vanilla's defaults, users and myself were having to force a soft refresh to re-validate the homepage right after login if it was clicked on to re-cache the logged in page.
I managed to force my own headers using the exact method you just mentioned earlier.
What is your homepage? Discussion lists should set
Cache-Control: no-store
by default.My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
The actual homepage url wasn't no-storing.
example.com/ was still using a 2 minute cache while example.com/discussions/ wasn't.