C
C#2y ago
sirmangler

❔ asp.net 6 not updating static scripts (javascript etc)

I feel like I'm going insane here but, I have some content in wwwroot which works fine. A html page and a basic javascript page. The script portion of the html / the javascript file will not update. To be clear, I: Updated /js/myScript.js to be empty or console.log or whatever. - Cleared the cache in firefox - Cleaned the solution - Restarted Visual Studio entirely - Start the server again The old version is still being delivered. The only time the files will update is if I change the HTML's structure (but still not the JS itself). What's going on here? This seems way too basic to be broken.
8 Replies
sirmangler
sirmanglerOP2y ago
This is so strange. I have 3 versions of the same file.
Angius
Angius2y ago
It's prolly cached in the browser Ctrl+F5 it Or open the devtools, network panel, and check "disable cache" toggle
sirmangler
sirmanglerOP2y ago
thank you, but the first step I listed was clearing the cache in my browser. unless you mean there's a setting in visual studio to disable some other cache?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
sirmangler
sirmanglerOP2y ago
clean solution should have wiped that right?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
sirmangler
sirmanglerOP2y ago
that would be the 2nd step i listed this is very bizarre in that case, it has to be related to firefox just not clearing the cache properly
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server