搜尋 Mozilla 技術支援網站

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

了解更多

Firefox doesn't reload CSS added through @import while using CTRL+Shift+R

  • 1 回覆
  • 0 有這個問題
  • 1 次檢視
  • 最近回覆由 Filcuk

more options

When refreshing and clearing cache using CTRL+Shift+R, browser should reload all assets. However when refreshing site with @import(ed) style sheet, it does not update.

The workaround is to open the style sheet in a new tab (e.g. https://my.web.com/assets/custom.css) and run refresh + clear cache there CTRL+Shift+R, which loads the updated style sheet.

Then, upon refreshing the original site (https://my.web.com), the CSS has been updated.


Is this a bug or expected behaviour?

When refreshing and clearing cache using CTRL+Shift+R, browser should reload all assets. However when refreshing site with @import(ed) style sheet, it does not update. The workaround is to open the style sheet in a new tab (e.g. https://my.web.com/assets/custom.css) and run refresh + clear cache there CTRL+Shift+R, which loads the updated style sheet. Then, upon refreshing the original site (https://my.web.com), the CSS has been updated. Is this a bug or expected behaviour?

被選擇的解決方法

After further testing, I've discovered this was due to Cloudflare caching, NOT Firefox - my apologies.

從原來的回覆中察看解決方案 👍 0

所有回覆 (1)

more options

選擇的解決方法

After further testing, I've discovered this was due to Cloudflare caching, NOT Firefox - my apologies.