How to ignore cache but still save the result at the end
Hello,
In my case, my app is exposing a URL that takes a long time to respond due to slow internal processes. I would like to cache it and serve it on demand ...
But I would like to allow user to skip cache sometimes and force app to recalculate page content. The point is that in the end, I would like to cache this new content, so that the next users will benefit from the most recent content.
How to tell Apicache punctually: don't read the cache ... but continue writing to it?
Any help appreciated;) Thx
I found this https://github.com/kwhitley/apicache/pull/17. I guess 'x-apicache-force-fetch' was supposed to do this ... but it doesn't seem to work anymore. The behavior is exactly the same than 'x-apicache-bypass'
Any explanation ?
I finally pushed the fllowing PR to restore the original behavior : https://github.com/kwhitley/apicache/pull/220