Skip to content

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

@johan-Rm

Description

@johan-Rm

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?...

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions