schme16 / gitcdn.xyz

Serve your content straight from GitHub, with the correct Content-Type, consistant url and a powerful CDN
https://gitcdn.xyz
GNU General Public License v3.0
387 stars 45 forks source link

File extension sometimes changed to .bin #62

Closed warbe-maker closed 2 years ago

warbe-maker commented 4 years ago

Enthusiastic in the first place unfortunately I have an issue. It appears unpredictable but some file extensions are changed to .bin and some not. .frm (an exported VBA UserForm) was kept but .frx (the exported VBA UserForm's Design) was changed to .bin. A day before .bas (an exported VBA module) was also changed to .bin. It would be great if this unpredictability can be solved.

schme16 commented 4 years ago

I'm not far from doing a pretty major overhaul of the back end. I'll add this to the list of todos.

Thanks for reporting it!

warbe-maker commented 4 years ago

Thanks for this reply. It appears that this extension problem is bound to my Android smartphone where I observed it. When using Windows (which is the target environment for all my posts and repos since the are all about Microsoft VBA) everything is fine so far. So there's no real urgency for this issue - in case it's one.

Best regards, Walter -- Sicher gesendet mit Tutanota. Hol dir deine eigene verschlüsselte & werbefreie Mailbox: https://tutanota.com

  1. Okt. 2020, 04:09 von notifications@github.com:

I'm not far from doing a pretty major overhaul of the back end. I'll add this to the list of todos.

Thanks for reporting it!

— You are receiving this because you authored the thread. Reply to this email directly, > view it on GitHub https://github.com/schme16/gitcdn.xyz/issues/62#issuecomment-706468885> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/AM4IVSAGUUNW4UELHT3QLJDSJ664RANCNFSM4SCVLUYA> .

schme16 commented 4 years ago

Looking into this issue it seems that the likely casue is that I set the charset to utf-8 on a few specific filestypes (.js, .json .css, .html, .txt) as it helps rendering those files on non-mobile browsers. Strangely on mobile browsers it seems to cause some issues (only when accessing the file directly, in a script tag/style tag, etc, it works as intended), on Android Browser (not sure if Chrome for Android is affected too, but maybe?) it appends a .bin to the filename, and forces it to be downloaded.

I'll keep hunting around for a way to make both platforms happy!