-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Browser ignoring cleared cache group #218
Comments
Have added a temporary fix by commenting out this in
Now the browser asks the server every time and if the server cache has it then it returns it, so not as quick but better than having no caching at all. Having this does make sense and I want to add it back but it seems I'm getting inconsistent behaviour as explained above and I don't know why. The only thing I can think of is that when the |
Have done some more digging around I believe it's because the Etag doesn't change for |
@ezeikel Sorry for digging this up, have you found the solutions for this? |
I have a similar issue to #93 but setting
{headers: { 'cache-control': 'no-cache' } }
doesn't seem to solve it.I have a
GET
request/sparks
that gets all items in a collection and sets the apicachGroup:a
GET
request/sparks/:id
that gets a specific item in that collection and sets the apicacheGroup:and a
PUT
request/sparks/:id
to update an item which clears both of theapiCacheGroup
:However, when reloading the page the cache seems to be correctly invalidated for the
GET
to/sparks/:id
and I get the fresh data but theGET
to/sparks
still has stale data.Checking the cache index shows the the groups did exist and are removed correctly but while the group for a specific item is created again the group for all of the items isn't and the browser is still returning a cached version in the Network tab.
So even those the api has cleared the index the browser still has a cached version somehow? Not sure why it works for one request and not for another when they are pretty similar
My cache options are set like this:
The text was updated successfully, but these errors were encountered: