Github页面,HTTP标头 [英] Github pages, HTTP headers
本文介绍了Github页面,HTTP标头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从我的Github网页帐户提供一些我的文件。但是,当我检查我的js文件头时,我看到以下内容:
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
此文件在14天前提交。但我不打算频繁地规划这些文件。所以我需要做出更大的最大年龄值,并将Last-Modified值更改为上次提交日期。
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.
是否可以更改Github页面的标题?
Is it possible to change headers of Github pages?
推荐答案
我向Github管理员询问了这个问题,他们告诉我不可能更改标题。他们将此问题添加到了愿望清单中。
I asked this to Github admins, and they told me that "it is not possible" to change headers. They added this issue to wishlist.
这篇关于Github页面,HTTP标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文