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

works on localhost but not in production #271

Open
thomasdolberg opened this issue Aug 3, 2019 · 0 comments
Open

works on localhost but not in production #271

thomasdolberg opened this issue Aug 3, 2019 · 0 comments

Comments

@thomasdolberg
Copy link

I am having an issue with angular-cache not working in production but working fine on localhost.

I add some requests to a localstorage cache called "employeescache". The requests vary by parameter, eg:
/api/employee?id=1
/api/employee?id=2
etc

On localhost these are being cached, and I can see that there is a key for each request.

On production there is only one key being saved at a time, and even though I refresh the page, it doesn't retrieve the data from cache using the key already in the cache.

On production I also get an error, which I don't get on localhost:
Error: n is undefined
get@https://cdnjs.cloudflare.com/ajax/libs/angular-cache/4.6.0/angular-cache.min.js:1:2250
r@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.min.js:89:20

Any ideas why this is?

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

1 participant