web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Unanswered

Bundled JavaScript file cached and can't debug

(1) ShareShare
ReportReport
Posted on by 40
Hi, I am experiencing that I am no longer able to prevent caching of my JavaScript web resource (bundlet from TypeScript) during debugging. I have used Fiddler and its Auto Responder feature succesfully for some time, but it is not working any more. I have tried the following:
 
  1. Disable cache in browser (while Dev Tools are open)
     
  2. Use the following script in Fiddlers OnBeforeResponse
    if (oSession.uriContains("hty_CrmClientScriptExtension")) {
                oSession.oResponse.headers.Remove("Expires");
                oSession.oResponse.headers.Remove("Cache-Control");
                oSession.oResponse.headers.Remove("Pragma");
                oSession.oResponse["Cache-Control"] = "no-cache, no-store, must-revalidate";
                oSession.oResponse["Pragma"] = "no-cache";
                oSession.oResponse["Expires"] = "0";
            }
  3. Empty cache and hard refresh in browser while Dev Tools are open
 
Non of these helps. This worked before, any advice is appriciated.
Categories:
I have the same question (0)
  • Ram Prakash Profile Picture
    5,408 Super User 2025 Season 2 on at
    Bundled JavaScript file cached and can't debug
    Hi,
     
    Try using Incognito mode and try the same..
  • Žarko Radevic Profile Picture
    40 on at
    Bundled JavaScript file cached and can't debug
    The purpose is not having to upload every single change in the web resource. I am not managing cache in my code, I want to disable caching temporarily so that I can debug and test my code more efficently. And no, Ctrl + F5 does not remove web resource from cache.
  • Gabriel G. Profile Picture
    781 Super User 2025 Season 2 on at
    Bundled JavaScript file cached and can't debug
    Hi!
     
    What's the purpose of all this ? (real question) If you want to reset your cache, simply use Ctrl+F5 on your keyboard and cache will reset. Otherwise, if you need to manage cache in your code, maybe your solution is not the appropriate one :/.

    I hope it helps!
    ___________________________________________
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 973 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 366 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 343

Last 30 days Overall leaderboard

Featured topics