I have an Aurelia app using HttpFetch
from aurelia-fetch-client v1.8.2
. The problem I'm experiencing is that the Chrome browser is caching some GET
request URLs between my deployments.
E.g. one particular request would go to .../api/v1/users
but has since been changed to .../api/v1/users?somequerystring=value
, however clients are reporting that the old URL is still being used. It's happening to about 3/4 users. For some reason myself and a small handful of users work correctly and requests are made using the updated GET
URL.
I've experienced response caching in the past before and have since added '?cacheBust=' + new Date().getMilliseconds()
to every GET
URL request to ensure uniqueness, however this new type of caching is unfamiliar to me.
It's worth noting that this may be some JS file caching as the users are seeing the updated front-end pages.
Having the developer console open and performing an Empty Cache and Hard Reload
obviously works, but I can expect my users to need to do that whenever I update the request URLs.
Any suggestions?