Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I force cdn.rawgit.com use updated file

Tags:

github

cdn

I am using cdn.rawgit.com to host some of my scripts and css for a project but I cannot refresh it. According to the FAQ:

Requests to cdn.rawgit.com are routed through MaxCDN's super fast content delivery network, and are cached permanently the first time they're loaded. This results in the best performance and reduces load on RawGit and on GitHub, but it means that reloading won't fetch new changes from GitHub.

Does this mean I can never refresh? Or is there a way to force a refresh to use the most recent version?

like image 554
jonnie Avatar asked May 08 '14 09:05

jonnie


1 Answers

Yes, permanent means never.

From the documentation:

Since files are not refreshed after the first request, it's best to use a specific tag or commit URL, not a branch URL.

This wouldn't update the file per-se, but it would allow you to specify the new version.

like image 142
JohnD Avatar answered Oct 23 '22 20:10

JohnD