ResourceOverride icon indicating copy to clipboard operation
ResourceOverride copied to clipboard

Files not being Over written

Open Yupefer opened this issue 8 years ago • 4 comments

Me and my team have been using resource over ride and it was working fine. We usually use the file over write so we can make changes to the file normally given by the server such as JS and HTML files but ever since the update files are not being over written properly. We will give a path and provide an over write but chrome still uses the original server file and never loads our over ride.

Yupefer avatar Dec 16 '16 08:12 Yupefer

Just to be clear I am taking about the URL -> File option. Where we provide a link to a file and we can edit that file.

Yupefer avatar Dec 16 '16 08:12 Yupefer

Ack sorry to hear about that. Any chance I could get more details? Whatever you can safely give me to help me reproduce the problem.

kylepaulsen avatar Dec 16 '16 08:12 kylepaulsen

I love this extension btw you've done a great job with it really!

Go to any website with a normal JS file copy the link address of that JS file

ADD rule - URL -> File

In the from field I put the link address of that JS file. In the edit file I will copy the same contents of that JS file and make a change let's say a console.log(). Once I refresh reloading cache and all it still loads the older JS file.

Usually that file I have edited will appear in the chrome developer tools under sources -> no domain but it's not over writing the file at all

Yupefer avatar Dec 16 '16 08:12 Yupefer

Hmmm.. it must be more complicated. I was able to get it to work on my website. Does chrome say anything about refusing to load a file? Sometimes the content security policy header can mess things up. The new "change headers" rule can help with that if that's what's causing the issue (it's in the presets drop down labeled "allow outside content"). You can also use the show logs check box in the options to make sure the rule is matching. Anyway sorry I can't be more help... Can you send your saved rule file / screen shots or something? Or would that show company source code?

kylepaulsen avatar Dec 16 '16 09:12 kylepaulsen