DevTools Sources Caching issue

Dominic Roche 6 Reputation points
2022-07-22T19:56:49.54+00:00

I am using Edge for an ExpressJs Application. I am experiencing an issue where 1 Javascript ES Module is being cached(ie it shows an older version of the js file before I started making changes) when looking at the Sources Tab for debugging. Even though though if I use the tool to ask for it to open that same file in a new tab it shows the current file. So the browser is caching (for debugging) and making my job of debugging impossible. Because of my environment I did quite a bit of testing to check this issue (including getting my IT dep to remove Group Policies on Edge). I prefer edge but I did try to see if this happens in Firefox and Chrome as well. Firefox does not but Chrome does. So whatever this is I would assume is a core Chromium issue. Please help. I use the Dev Tools often (as a Developer) but I am by no means an expert on it. I do not play around with settings I do not understand and I have changed nothing in the past (probably) year. This just happened recently (I noticed it 3 days ago) so perhaps if there was a recent change to the Chromium Core in both Edge and Chrome. If there is any way to fix this it would be greatly appreciated. I dont hate Firefox but of the 3 its my least favorite. Right now it is my only choice. Please Help

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,375 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Dominic Roche 6 Reputation points
    2022-07-25T14:56:40.34+00:00

    Found this thread which looks like the same issue:
    https://groups.google.com/g/google-chrome-developer-tools/c/VSLH4NN9cjk

    1 person found this answer helpful.

  2. XuDong Peng-MSFT 10,836 Reputation points Microsoft Vendor
    2022-07-25T08:08:07.537+00:00

    Hi @Dominic Roche ,

    If you don't want to be affected by the cache during debugging, you can try disabling the cache. Just press F12 to open devtools in Microsoft Edge, and switch to Network tab, you will find the option Disable cache.

    Something like this below:

    224160-image.png

    And as the prompt box shows, you need to keep devtools open.

    Best regards,
    Xudong Peng


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.