http - How to expire cached pages when only the CSS url changes -


scenario: make update css file, push cdn, , need change version number in query string make sure users' browsers download latest copy

here's problem: of pages behind varnish, , absolute url of css file being pulled memcached.

do need expire entire page trigger update?

you need expire pages refer 'old' versions of css. if worried expiring 'whole' pages expensive, can divide pages in esi processable fragments , expire css-containing html fragment.

another (bit exotic) option use javascript. if have lot of cached pages, , include javascript resource that's updated more cached web pages, have javascript add latest css url dom.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -