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
Post a Comment