dslreports logo
site
 
    All Forums Hot Topics Gallery
spc

spacer




how-to block ads


Search Topic:
uniqs
645
share rss forum feed


markp_2000
Heathen
Premium
join:2004-01-21
West Linn, OR

Cache Revalidation on Apache2

Does anyone have a recommendation on how to conduct an end-to-end Cache Revalidation?

Users on my site are reporting various issues and I have traced it down to a misconfigured apache2 expires directive. Which I have fixed. Although most have completed a self purging of their cache I still have users reporting various issues.

I would like to force a complete reloading of their cache from the server.

Mark
--
"You can't fool me! I listen to public radio." - Squidward

"I'd be going around with a big 'BS' and you understand why I can't go around with that." - Syndrome


cdru
Go Colts
Premium,MVM
join:2003-05-14
Fort Wayne, IN
kudos:7
said by markp_2000:

I would like to force a complete reloading of their cache from the server.

Because they may already have a cached version of the page, any type of meta tag, header, or other cache directive wouldn't be loaded. If you can control links that point to the page or the resource in question, appending a query string with a random number will differentiate the page requests and bypass cached content.


markp_2000
Heathen
Premium
join:2004-01-21
West Linn, OR
reply to markp_2000
I was afraid of that. I did that with one javascript (added a -v1.js) and was hoping for an easier method. The resources were cached for 30 days, so I guess at the worse end it would be 30 days from site upgrade.

I will look at all of the critical files and start to work.

Mark
--
"You can't fool me! I listen to public radio." - Squidward

"I'd be going around with a big 'BS' and you understand why I can't go around with that." - Syndrome


markp_2000
Heathen
Premium
join:2004-01-21
West Linn, OR
reply to markp_2000
If I push some of this stuff to a CDN would that help? The stuff I have read states I need to have a new URL to pull the updated files.

Mark


cdru
Go Colts
Premium,MVM
join:2003-05-14
Fort Wayne, IN
kudos:7
If the page itself is cached, no. If it's an asset of a page yes. But just changing the filename or adding a query string would do that as well without using a cdn.