Invalidate cache entry using X-Accel-Expires

Calin Don calin at
Sun Jan 29 17:15:47 UTC 2012


Right now I'm invalidating cache entries using X-Accel-Expires 1 response
with 302 redirect of the resource to itself. I want to ask for your opinion
on two issues:

1. Do you see other response code (other than 302) more suitable for this
2. I think that X-Accel-Expires 0 should also invalidate the cache entry,
beside not caching item at all, since it says this resource should expire
in 0 seconds. What's your opinion on this?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list