On Aug 14th 11 PM ET/Aug 15th 03:00 UTC, due to scheduled Firefox Account server maintenance, users may not be able to sign in or create a new subscription. This is expected to last approximately 30 minutes. Status updates can be found at https://status.vpn.mozilla.org or https://status.relay.firefox.com.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to prevent that Firefox auto start download files with Header "content-type: text/markdown"?

  • No replies
  • 2 have this problem
  • 15 views
more options

For example: I visit https://raw.githubusercontent.com/vvb2060/Magisk/b03fdcb14dc0e7ec88e98ac3dd769d96ab01c1e2/app/src/main/res/raw/changelog.md It open normally and I can directly see what inside of it. The "content-type" of this http request is "text/plain".

But if I visit https://cdn.jsdelivr.net/gh/vvb2060/Magisk@b03fdcb14dc0e7ec88e98ac3dd769d96ab01c1e2/app/src/main/res/raw/changelog.md Firefox will download it automatically, instead of directly open it in browser. The "content-type" of this http request is "text/markdown".

This is not the problem of "What should Firefox do with other files?" setting...

I make a test, I create a file "test.md" in the Nginx website folder, and I add "default_type text/markdown" to conf to force its content-type, pic here: https://vip2.loli.io/2022/05/12/v39nT8wu6yIlXeH.png

When I open it in Edge Chromium, it will shows what inside of it: https://vip1.loli.io/2022/05/12/EGFwgHPtNjqshyl.png

But Firefox... https://vip1.loli.io/2022/05/12/vuz8YBQAlD2ZCGk.png ( Here I turn on "Ask whether to open or save files")

I am using Firefox Dev 101.0b5 and also test it with Firefox Stable 100.0, the same.

For example: I visit [https://raw.githubusercontent.com/vvb2060/Magisk/b03fdcb14dc0e7ec88e98ac3dd769d96ab01c1e2/app/src/main/res/raw/changelog.md https://raw.githubusercontent.com/vvb2060/Magisk/b03fdcb14dc0e7ec88e98ac3dd769d96ab01c1e2/app/src/main/res/raw/changelog.md] It open normally and I can directly see what inside of it. The "content-type" of this http request is "text/plain". But if I visit [https://cdn.jsdelivr.net/gh/vvb2060/Magisk@b03fdcb14dc0e7ec88e98ac3dd769d96ab01c1e2/app/src/main/res/raw/changelog.md https://cdn.jsdelivr.net/gh/vvb2060/Magisk@b03fdcb14dc0e7ec88e98ac3dd769d96ab01c1e2/app/src/main/res/raw/changelog.md] Firefox will download it automatically, instead of directly open it in browser. The "content-type" of this http request is "text/markdown". This is not the problem of "What should Firefox do with other files?" setting... I make a test, I create a file "test.md" in the Nginx website folder, and I add "default_type text/markdown" to conf to force its content-type, pic here: [https://vip2.loli.io/2022/05/12/v39nT8wu6yIlXeH.png https://vip2.loli.io/2022/05/12/v39nT8wu6yIlXeH.png] When I open it in Edge Chromium, it will shows what inside of it: [https://vip1.loli.io/2022/05/12/EGFwgHPtNjqshyl.png https://vip1.loli.io/2022/05/12/EGFwgHPtNjqshyl.png] But Firefox... [https://vip1.loli.io/2022/05/12/vuz8YBQAlD2ZCGk.png https://vip1.loli.io/2022/05/12/vuz8YBQAlD2ZCGk.png] ( Here I turn on "Ask whether to open or save files") I am using Firefox Dev 101.0b5 and also test it with Firefox Stable 100.0, the same.

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.