Actions after cache miss is detected
roger at netskrt.io
Fri Aug 10 16:05:30 UTC 2018
Is there a way to perform an action after a cache miss is detected but before the request is forwarded to the upstream server?
Specifically, on a cache miss I want to:
Return a response instead of forwarding the request to the upstream server.
Trigger a handler (module or script) that executes asynchronously to the request.
The latter I could do by looking at the logs. But I was wondering if there is a more elegant way.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx