Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to ignore cache but still save the result at the end #219

Open
msieurtoph opened this issue Aug 7, 2020 · 2 comments
Open

How to ignore cache but still save the result at the end #219

msieurtoph opened this issue Aug 7, 2020 · 2 comments

Comments

@msieurtoph
Copy link

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

@msieurtoph
Copy link
Author

I found this #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 ?

@msieurtoph
Copy link
Author

I finally pushed the fllowing PR to restore the original behavior :
#220

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant