Skip to content

Comment on The 5-Hour CDN

Comments

Does Nginx still not support cache invalidation? If you setup long TTL, is there a way to remove some files from cache without nuking entire cache and restarting an instance?

It's supported, but only for NGINX Plus. You can kind of work around it by using proxy_cache_bypass though

Or delete the file in question on disc, the full path is encoded, and I've come across scripts and lua modules that does it for you.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.