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

Add a timestamp to the filename called by the API #1689

Closed
johan-Rm opened this issue Nov 17, 2022 · 0 comments · Fixed by #1705
Closed

Add a timestamp to the filename called by the API #1689

johan-Rm opened this issue Nov 17, 2022 · 0 comments · Fixed by #1705
Assignees
Labels
enhancement New feature or request

Comments

@johan-Rm
Copy link

johan-Rm commented Nov 17, 2022

Description

After a new build, the browser returns the "previous" data, once the hard refresh has been carried out, the data is up to date.

I need to do a hard refresh on the url below or a manual browser cache deletion to be able to see my new data

http://127.0.0.1:3000/api/_content/query/sqaCvZFIHY.json?...

Maybe solution

Is adding a timestamp on the filename called by the API could force browsers to update the data? (see below)

http://127.0.0.1:3000/api/_content/query/sqaCvZFIHY.1562472809334.json?...

@johan-Rm johan-Rm added the enhancement New feature or request label Nov 17, 2022
@johan-Rm johan-Rm changed the title Add a timestamp to the filename of the file called by the API Add a timestamp to the filename called by the API Nov 17, 2022
@farnabaz farnabaz self-assigned this Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants