I need to cache an API for a webapp with Varnish. This requires creating a custom VCL.
A cursory look into this indicates the necessity to purge unsafe requests. This generally happens through modifying the application to generate a purge request after an unsafe request is processed. I don't want to touch the code. I want to handle this either directly in Varnish, or if necessary with nginx.
My thoughts are:
1. create a rule whereby Varnish generates a purge after an unsafe request is pushed to the back-end. I think this is doable, but not best practice. What happens when a request is for some reason not processed on the back-end yet is purged of cache? Not ideal.
2. use nginx to create a purge request to send back to Varnish after it processes the unsafe request. I think this is doable, but am not certain? It should be able to be handled with if statements, but I don't know enough to make this happen.
I need a solution so that the cache works with Varnish. This is the first big step. The second requires creating ban rules specific to the webapp. It's a forum software, so content is very dynamic, and shared for instance if a thread is modified, this changes the index page. I need rules put in place to properly remove cache which has been changed.
This is something that is necessary for me to move forward. Please quote me a reasonable price, and I will award winning bid based on experience, reviews, and a competitive price.
We can chat here, or skype before, during, and after the project in order to gain the proper information and tie up loose ends.
Happy Bidding!
16+ years experience with System Administration and Computer Security.
[login to view URL] profile - [login to view URL]
Skype ID - pdjoyner
Contact me to discuss this project.
Thank you,
Paul Joyner