mardi 4 décembre 2018

Can a webpage specify how often it should be cached?

I'll start by saying I'm still a novice web developer.

I built a small search tool for a website that uses elasticsearch data for search. The results page uses javascript to receive the data and present it on the page.
But every once and a while, we'll get a user who doesn't receive any results from the search. Clearing their cache usually fixes the issue, but my question is:

Can a developer explicitly define when their page should be cached and when the cache for their page should be cleared?

-This is a pure html & javascript page, so Java cannot be used.




Aucun commentaire:

Enregistrer un commentaire