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

?force=true to clear a cache #36

Closed
rodolphonetto opened this issue Jan 21, 2020 · 1 comment
Closed

?force=true to clear a cache #36

rodolphonetto opened this issue Jan 21, 2020 · 1 comment
Labels
question Further information is requested

Comments

@rodolphonetto
Copy link

Hi, I use cacheable-response and it is very nice! thank you for the amazing job!

After all I don't think it is a issue... its more a question...

If I use my URL and ?force=true the next access will gerenate a new cache?

I mean, I have a news website and if I find a mistake I dont want to wait 10 minutes to people receive the new version of the site, will ?force=true clear the cache?

@Kikobeats Kikobeats added the question Further information is requested label Jan 21, 2020
@Kikobeats
Copy link
Owner

Hello, as documentation is saying:

In case you need you can force invalidate a cache response passing force=true as part of your query parameters.

so yes, it's forcing to regenerate the cache state 🙂

I don't know your use case, but a thing you can do is to ping the URL passing `url=true´ after deployment is done

Does make sense for you?

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

No branches or pull requests

2 participants