Skip to content
Advertisement

Automatically reload a webpage when it expires

I have an HTML page with headers like this:

JavaScript

It is currently 04:45:17 on that date and I want that page to automatically reload at 09:50:03, at which point the page will have a new expiration date in the met tag, and I want the page to reload based on the new date.

I can reload on an interval, I can use JavaScript to reload if any the files on disk change, but I can’t figure out how to reload based on the expires header. PHP or JavaScript solutions preferred.

Advertisement

Answer

Answer already been given to extending existing answer with further:

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement