htmlpreview / htmlpreview.github.com

HTML Preview for GitHub Repositories
htmlpreview.github.com
1.56k stars 316 forks source link

Not needed? rawgit.com works #27

Closed tomByrer closed 10 years ago

tomByrer commented 10 years ago

eg: old: http://htmlpreview.github.com/?http://github.com/dcodeIO/Preprocessor.js/master/docs/Preprocessor.html

Error: Cannot load file http://raw.githubusercontent.com/dcodeIO/Preprocessor.js/master/docs/Preprocessor.html

new: https://rawgit.com/dcodeIO/Preprocessor.js/master/docs/Preprocessor.html

tomByrer commented 10 years ago

Though I'd like to add http://rawgit.com:

share temporary examples or demos with small numbers of people.

New changes pushed to GitHub will be picked up within minutes, but heavy traffic will be throttled and excessive traffic will be blacklisted.

niutech commented 10 years ago

You have an error in your URL. It should be: http://htmlpreview.github.io/?https://github.com/dcodeIO/Preprocessor.js/blob/master/docs/Preprocessor.html

Rawgit serves files from a third-party host, whereas HTMLPreview works client-side and loads files straight from Github (via YQL or your own proxy).

tomByrer commented 10 years ago

Ah, thanks!

On Fri, Aug 22, 2014 at 6:27 AM, niu tech notifications@github.com wrote:

You have an error in your URL. It should be: http://htmlpreview.github.io/?https://github.com/dcodeIO/Preprocessor.js/blob/master/docs/Preprocessor.html

Rawgit serves files from a third-party host, whereas HTMLPreview works client-side and loads files straight from Github (via YQL or your own proxy).

— Reply to this email directly or view it on GitHub https://github.com/htmlpreview/htmlpreview.github.com/issues/27#issuecomment-53054417 .

letmaik commented 8 years ago

So what's the advantage of HTMLPreview compared to rawgit? Only the fact that you theoretically can use your own proxy? I guess noone would do that anyway.

niutech commented 8 years ago

As I said, Rawgit is a third-party sever and if it was hacked, it could modify the source, or if it was down, you could not see anything. On the other hand, HTMLPreview uses the first-party Github infrastructure.

letmaik commented 8 years ago

Well, although not likely, YGL/Yahoo could be hacked as well or go down. But yes, I see the point.