Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github pages, HTTP headers

I serve some of my files from my Github pages account. But when I check my "js" files' headers, I saw following:

Last-Modified:Sun, 10 Feb 2013 14:00:46 GMT  Expires:Sun, 10 Feb 2013 14:13:23 GMT Cache-Control:max-age=600 

This file was commited 14 days ago. But I don't plan these files so frequent. So I need to make much bigger max-age value and change Last-Modified value to last commited date.

Is it possible to change headers of Github pages?

like image 352
trante Avatar asked Feb 10 '13 14:02

trante


2 Answers

I asked this to Github admins, and they told me that "it is not possible" to change headers. They added this issue to wishlist.

like image 91
trante Avatar answered Oct 06 '22 02:10

trante


The answer is no, however we can stimulate html header on html pages using <meta http-equiv> tag.

<meta http-equiv="last-modified" content="Sun, 10 Feb 2013 14:00:46 GMT " /> <meta http-equiv="cache-control" content="Private" /> <meta http-equiv="Expires" content="600" /> 

You can embed these snippets into the HTML page.

like image 32
tamyiuchau Avatar answered Oct 06 '22 01:10

tamyiuchau