Actions after cache miss is detected

Roger Fischer roger at netskrt.io
Fri Aug 10 16:05:30 UTC 2018


Hello,

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.

Thanks…

Roger



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20180810/4c25b4c7/attachment.html>


More information about the nginx mailing list