I want to serve a javascript file using github pages because using a CDN is too slow (it doesn't update immediately when there is a new version of the file). Is there a way to serve a javascript file instead of index.html when someone access my github pages url? Or alternatively is there a way such that index.html returns a javascript file as response instead of the usual html content?
-
/use/a/suburl/maybe.js?Jonas Wilms– Jonas Wilms2017-07-16 11:54:50 +00:00Commented Jul 16, 2017 at 11:54
-
@Jonasw I tried pushing a file.txt to an existing github page, but when I try to access (github page url)/file.txt it says file isn't found. It might be because it's not yet updated. In my experience index.html gets updated fast enough that's why I want to use index.html to make the updates reflect fasterDarkPotatoKing– DarkPotatoKing2017-07-16 11:58:54 +00:00Commented Jul 16, 2017 at 11:58
-
if you want to update fast, rent your own server.Jonas Wilms– Jonas Wilms2017-07-16 12:05:02 +00:00Commented Jul 16, 2017 at 12:05
Add a comment
|