How To Invalidate an Nginx Cache In a Reverse Proxy Setup With Spring MVC
You can see the sample code associated with this post on Github.
In two previous posts, we looked at how to provision a reverse proxy using nginx and then how to add caching to the nginx reverse proxy. The implementation we ended up with at the end of the last post was a “dumb” cache, meaning that it doesn’t know when or if any data gets updated–it just times out after 60 seconds and then asks for a new payload from the application it’s acting as proxy for.