My higher-ups asked me to address issues we have with elements of our umbraco website caching in the browser.
So I started with gulp-cachebust to hash the filenames of my *.css and *.js files. I'm very happy with the results there.
Next I wanted to attack HTML caching. And this is where I'm not sure how to proceed. As you can see from my screengrab below, my homepage cache-control is set to private. I think maybe that should be set to no-cache. Also, there's no ETag header. I think adding an ETag header might help.
Cache Control Help
My higher-ups asked me to address issues we have with elements of our umbraco website caching in the browser.
So I started with gulp-cachebust to hash the filenames of my *.css and *.js files. I'm very happy with the results there.
Next I wanted to attack HTML caching. And this is where I'm not sure how to proceed. As you can see from my screengrab below, my homepage
cache-control
is set toprivate
. I think maybe that should be set tono-cache
. Also, there's noETag
header. I think adding anETag
header might help.Here's my relevant web.config code:
Is it possible/advisable to use UseMaxAge for my static elements in the mimeMaps you see in my code, and use no-cache for my *.aspx and *.cshtml?
Ended up using an outbound rewrite rule to add the no-cache header to my html files while maintaining my UseMaxAge on my static content.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.