Disable cache only for newly modified scripts in chrome? - google-chrome

Is it possible to disable the cache for scripts only (in chrome)? I would like to avoid reloading the entire web application (only reload the files I modified).
I know about hot reload, but sometimes I still need to restart the application.

Go into More Tools>Developer tools. Under General Settings check off "Disable cache (while DevTools is open)"
EDIT: I found a Chrome Extension called Cache killer, maybe you should check that out.

Related

Visual Studio/Chrome not updating HTML/Typescript

I am running my company's application locally and making some HTML/TS changes. However, whenever I save/hot reload and reload the browser, nothing changes.
I can stop debugging, build/rebuild, and run and the changes remain the same.
On a hunch I deleted the entire file from the directory and ran the application and nothing changed.
What am I missing here?
Web.Config is all configured to our dev environment currently, main web application is configured locally.
It turns out the problem was with Chrome. Inside Dev Tools -> Settings -> Network -> Disable cache (while DevTools is open).
When I clicked this option, it stopped caching old changes, and I was able to see my updates again with each hot reload.

How to clear DNS cache in google chrome

On Linux Debian 10 (Buster), I am using the http(s) client google-chrome-stable.
I was configuring (nginx) and testing (chrome) a reverse proxy and it got cached using a wrong domain.
I fixed the configuration but it still resolve to the wrong domain.
I have tried to go chrome://net-internals/#dns and click on Clear host cache but that didn't change anything.
I have tried to go chrome://net-internals/#sockets and click on Flush socket pools but that didn't change anything.
I am not working with FireFox, so FireFox can resolve correctly (so does curl).
After about 10 minutes, without restarting chrome. I did F5 (refresh) and it was loading the proper page. I haven't found a manual way to immediatly clear chrome cache.
I am doing devops and I haven't solved this issue for years.
Would love to know how to do one day :O
What happens if you open developer console F12 and then hold down on the refresh button and then select empty cache and hard reload?
Take a look at this gif for an example.

Stylesheet not working on change on secure server https

Hi i have a website that was previously running on http and now on secure server https. When it was running on http, change in style sheet was effecting web page immediately. But now when i used secure server https, changes in style sheet are not being effected. I have used cloudflare SSL certificate.
I have tried on Mozilla Firefox and Google Chrome protected tabs. I also have tried by using Google Chrome developer tools. Both of these couldn't help me out of this.
How i can make my style sheet take immediate effect on webpages.
https://www.ludhianaweddings.com/
Thanks in advance...
If you have Cloudflare SSL on I expect you probably also have their caching switched on?
Within the Cloudflare dashboard for your domain go to "Caching", the first option will be "Purge Cache". For best performance you can click "Purge Individual Files" and enter the URL of the CSS file you are updating. Alternatively click the dropdown and purge everything.
While you're working you may want to enable Development mode so you can frequently change files without having to purge the cache. This is also in the "Caching" tab, under "Development Mode".

Is there any short-cut to empty cache and hard reload in chrome for devs?

I'm trying to find if there is any shortcut option for emptying cache and hard reload shortcut in chrome instead of console logging and using the empty cache option.
If you are able to leave Dev Tools (F12 / CTRL+SHIFT+I) open, Network tab, check Disable cache, next time you reload any which way (click reload icon / CTRL+R / F5) it will do a reload that ALSO isn't cached.
I tested this by updating a source script that without "disabling cache" wouldn't update upon reload alone, or even with Dev Tools open and right-click the reload icon selecting Hard Reload. Would be a great Chrome Extension to make this occur whenever it's enabled though!

Changes made in struts.xml don't show in browser. How to refresh?

I'm developing an application that makes use of the struts2 framework, java and webcontent. I use Eclipse as my IDE and tomcat 7.0 as a server. Everything works fine, but when I make changes to the struts.xml file those changes aren't always reflected in my browser.
Here's my workflow:
1) Develop/make changes
2) save all
3) start tomcat 7.0 server
4) go to google chrome
5) go to localhost:8080/myWebapplication
6) test the application
What bothers me is that sometimes this works and new or changed actions are correctly displayed, while sometimes my application uses the previous sturts.xml and obviously my tests will fail. Why does my browser show this erratic behaviour? Do cookies, the browser cache or refreshing have anything to do with this? To be clear, I restart tomcat (after cleaning) and I restart my browser.
Restarting the browser is not enough to clear the cache.
This is a known Chrome issue, I suggest you to turn cache off while developing.
Read more on Disabling Chrome cache for website development.