Cache static pages in the browser

Asked

Viewed 98 times

1

How to make a page .html stay in browser cache for a period of 20 minutes after it is downloaded?

Obs: The Page is static and there is no "Back-end" is all done with HTML, CSS and JS, is staying at the Domain .github.io.

1 answer

1


Translating from this answer Soen

I asked the administrators of Github and they told me that "is not possible" alter the headers of the HTTP response on the pages github.io.

They added this request to wishlist (something that may or may not be done in a future update).

So only Github administrators can control this.

Additional points

Note that some people claim that the tag <meta> can cache the page, but I believe such tags are only used for bots (like Google, correct me if I’m wrong).

Browser other questions tagged

You are not signed in. Login or sign up in order to post.