Description
raw.githack (rawgit.hack) is a free CDN that serves files straight from GitHub, GitLab and other code hosts with the correct Content-Type headers. Code hosts serve raw JavaScript, CSS and HTML as plain text, so browsers will not run them; githack works as a caching proxy that fixes the headers so you can use repository files directly in web pages. You paste a file URL and get two links: a development URL that picks up new pushes within minutes, and a production URL pinned to a tag or commit that is cached permanently, with a manual cache purge. HTML files open behind a short confirmation page to discourage phishing abuse. It has run for about a decade, serves over 509 million requests a month, and is open source.…
Highlights
- Serve repo files with correct headers
- Development and production URLs
- Permanent caching by commit or tag
- Manual cache purge
- Works with GitHub and GitLab
Ratings & Reviews
No ratings yet
Be the first to rate raw.githack.com.
People also visit
raw.githack.com FAQ
Why is githack needed?
Code hosts serve raw JavaScript, HTML and CSS as text/plain, so browsers won't run them. githack relays the files with the right Content-Type.
Which URL should I use in production?
The CDN URL with a specific tag or commit hash. Those files are cached permanently.
How fast do changes show up?
On the development URL, within minutes of a push. Under heavy traffic the cache time is extended.
Why do HTML files show a warning page?
Because HTML served this way has been abused for phishing, githack asks you to confirm the destination before opening it.
Is it open source?
Yes. The source is on GitHub at neoascetic/rawgithack.
What are the best raw.githack.com alternatives?
Popular alternatives to raw.githack.com include Statically, jsDelivr and Toran Proxy. See all raw.githack.com alternatives



