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

Controlling which url to cache? #2

Open
AtherSajjad opened this issue Aug 23, 2018 · 1 comment
Open

Controlling which url to cache? #2

AtherSajjad opened this issue Aug 23, 2018 · 1 comment

Comments

@AtherSajjad
Copy link

Hey @ncornette

This library is awesome without implementing cache in server we can cache the response. Is there any way to ignore the response caching for few urls which should always hit the network. Point me out in the right direction i can change and send you pull request for it.

Thanks,

@ncornette
Copy link
Owner

Hi @AtherSajjad

As mentioned in the doc, you can use Cache-Control: no-cache and Cache-Control: no-store headers on requests to obtain this result. This behaviour seems not to be verified by unittests, It would be great if you could add these tests to check it works, then I would be very happy to accept your pull request.

Cheers,
Nicolas.

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

2 participants