搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

ICS Default Glitch

  • 2 回覆
  • 1 有這個問題
  • 5 次檢視
  • 最近回覆由 jscher2000

more options

Every time I click on an ICS file, it asks me what to do with it. I tell it to open with Thunderbird, and I check the box for it to do that by default. But it doesn't remember, so I have to select Thunderbird from the list every time. Thunderbird is set as the default in the Options>Applications menu, but it still asks every time.

所有回覆 (2)

more options

An automatic action will only work properly if the server sends the ICS file with a valid content (MIME) type. If that isn't the case and a generic content type like "application/octet-stream" or a content-disposition:attachment header is send then this won't work.

more options

I posted a sample .ics file on my server. The file is served as

Content-Type: text/calendar

with no special disposition instructions:

https://www.jeffersonscher.com/temp/2020USLaborDay.ics

Does your Firefox handle it automatically as desired?

Assuming so, there is nothing wrong with your Firefox configuration, the problem is that the server either sets the Content-Type wrong or sets Content-Disposition: attachment.