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

are there any ways to turn off the cache #34

Closed
jjhesk opened this issue Mar 8, 2017 · 3 comments
Closed

are there any ways to turn off the cache #34

jjhesk opened this issue Mar 8, 2017 · 3 comments

Comments

@jjhesk
Copy link

jjhesk commented Mar 8, 2017

when i refresh the page the information response is still the old one.

@maikokuppe
Copy link

maikokuppe commented Oct 24, 2017

I took a look in the code and it seems that the options are passed to the native fetch implementation:
https://github.com/niftylettuce/frisbee/blob/master/src/frisbee.js#L184

According to the Fetch API you need add the cache key with value reload to the options:

res = await api.get('/v1/messages', { cache: 'reload' });

For an explanation of the possible cache modes, look here

@OmgImAlexis
Copy link
Contributor

@niftylettuce maybe add some docs showing that opts can be passed through to fetch?

@niftylettuce
Copy link
Collaborator

Done.

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

No branches or pull requests

5 participants