提交后Github不更新`raw` [英] Github not update `raw` after commit
问题描述
已更新:似乎有大约5分钟的时间来更新原始数据.我将在这里结束我的问题.
Updated: Seem it has about 5 minutes to update raw. I will close my question at here.
我在Github上遇到问题.
I have a problem with Github.
我想以raw
格式获取文件.
我添加新的提交,并且我的文件已更新.
I add new commit and my file is updated.
看起来像这样:
我在变量tech
中添加JUST
关键字.
I add JUST
keyword in variable tech
.
当我单击raw
时.它保留了以前的版本.
When I click raw
. It keeps the previous version.
看起来像这样:
具有提交文件的raw
版本的任何方法.
Have any method to get raw
version of the file was commit.
推荐答案
GitHub通过Cache-Control: max-age=300
提供原始"页面.以秒为单位指定,这意味着该页面打算缓存5分钟.
GitHub serves "raw" pages with Cache-Control: max-age=300
. That's specified in seconds, meaning the pages are intended to be cached for 5 minutes.
如果您在单击GitHub上的原始"按钮之前在选定的Web浏览器中打开开发人员工具",则会看到此信息.
You can see this if you open the Developer Tools in your web browser of choice before clicking the "Raw" button on GitHub.
这篇关于提交后Github不更新`raw`的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!