Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github not update `raw` after commit

Tags:

git

github

Updated: Seem it has about 5 minutes to update raw. I will close my question at here.

I have a problem with Github.

I want to get the file as raw format.

I add new commit and my file is updated.

Look like this:

I add JUST keyword in variable tech.

When I click raw. It keeps the previous version.

Look like this:

Have any method to get raw version of the file was commit.

like image 534
Ave Avatar asked Oct 03 '17 18:10

Ave


People also ask

How long does it take to update raw GitHub?

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. You can see this if you open the Developer Tools in your web browser of choice before clicking the "Raw" button on GitHub.

What does RAW mean in GitHub?

The Raw button, like the name suggests, opens the file in a raw form, meaning that any HTML formatting disappears. This is particularly useful when you want to download a single file.

How do I view RAW files on GitHub?

Viewing or copying the raw file contentOn GitHub.com, navigate to the main page of the repository. Click the file that you want to view. In the upper-right corner of the file view, click Raw. Optionally, to copy the raw file content, in the upper-right corner of the file view, click .


1 Answers

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.

You can see this if you open the Developer Tools in your web browser of choice before clicking the "Raw" button on GitHub.

like image 195
John Zwinck Avatar answered Sep 24 '22 17:09

John Zwinck