Caching static pages in the browser

1

How do I make a .html page cache the browser for a period of 20 minutes after it is downloaded?

Note: The page is static and there is no back-end, everything is done with HTML , CSS and JS , it is hosted in the% / p>     

asked by anonymous 27.05.2015 / 15:12

1 answer

1

Translating this response SOen

  

I asked the administrators of GitHub and they told me that it "can not" change the headers of the HTTP response on the github.io page >.

     

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

So only Github administrators can control this.

Additional points

Note that some people claim that the <meta> tag can cache the page, but I believe that these tags are only used for bots (like Google's, please correct me if I you're wrong.)

    
02.06.2015 / 21:27