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

added caching param to list.json requests #128

Merged
merged 1 commit into from
Jan 12, 2020

Conversation

emrysr
Copy link
Contributor

@emrysr emrysr commented Dec 30, 2019

adding the cache: true param to the js requests for list.json sends the current time as an additional parameter called _. this should stop older browsers from caching responses from the api as there will be a different value sent with each request.

eg: ?apikey=[XXXXXXXXX]&_=1577707087415

I cannot test with older versions of IE on windows. Could anybody test this on IE 8+ and let me know if this stops the caching...?

@emrysr
Copy link
Contributor Author

emrysr commented Jan 2, 2020

https://community.openenergymonitor.org/t/my-solar-list-json-caching-on-internet-explorer/2896/4

has been tested on a windows machine by @jpalo in the above community post

@emrysr
Copy link
Contributor Author

emrysr commented Jan 3, 2020

fix #127

@TrystanLea TrystanLea merged commit 3c4ace9 into emoncms:master Jan 12, 2020
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

Successfully merging this pull request may close these issues.

2 participants