Can Firefox's “view source” be set to not make a new GET request?

前端 未结 12 1525
你的背包
你的背包 2020-12-13 05:50

This is sort of tangential to coding, but programmers often do \"view source\" on their own pages and on others\' pages. I learned that when you do the normal View Source in

12条回答
  •  北海茫月
    2020-12-13 06:27

    From Firefox 42.0 onwards, clicking "View source" should not do a new GET request but use the cache:

    Importantly, we have also ensured that View Page Source provides you with the source of the page as-is from Firefox’s cache – we do not fetch a new version.

    Reference: https://hacks.mozilla.org/2015/07/developer-edition-41-view-source-in-a-tab-screenshot-elements-har-files-and-more/

提交回复
热议问题