News for hackers. Stuff that matters.

rdx

Re:Ask HN: Cache Invalidation API in browsers? on Wednesday March 07, 2012 @10:31AM (#3675777)
Ahh, yes, I misunderstood that. That would be tricky to circumvent.
Re:Ask HN: Cache Invalidation API in browsers? on Wednesday March 07, 2012 @06:46AM (#3675118)
Yes, I also mentioned proxies like varnish and squid, but problem is they still require a HTTP request. It would be nice if there was an API which enables us to use pure client-side cache invalidation without any extra calls.

Ask HN: Cache Invalidation API in browsers?

Whenever we deploy a new version of a website - there are changes everywhere (CSS, JS, Images, change in HTML page layouts, etc). Currently we resort to URL manipulation (example path/to/resource?v=1, path/to/resource?v=2, etc where version is mostly a timestamp or hash, and resource is a CSS, JS or Image). Or we have to run reverse proxies and serve our site via Varnish or nginx which does the...

( Read More... | 5 comments | 7 points | on HN )