Automatically refresh browser on save - google-chrome

Is there a way to have the chrome browser automatically refresh whenever the file it's accessing changes? I want to run my files locally (not with a server). I'm using atom. I've so far found "browser-refresh-on-save" as an atom package but it does not work on Windows 32, which is what I'm using. All other solutions I've found require me to be running a server.

Related

Is there a way to overwrite local files in Google Chrome with service worker running?

Just found that if you have a service worker in your app and you use local overwrite in Chrome dev tools, the view shows a new file but it executes the old file, so you can't use the debugger properly. But anyway it doesn't work at all the file is not updated.
My service worker is only to allow using files in memory (from indexedDB) and the rest of the files just use fetch in Worker (no cache).
I was also trying to use extension resource overwrite but it also doesn't work.
Does anyone know how to change the file locally without modifying an app where the service worker is running?
I'm not sure If I should report this to the Chrome Dev tools team, since this is like a bug or missing an important feature.Just found that if you have a service worker in your app and you use local overwrite in Chrome dev tools, the view shows a new file but it executes the old file, so you can't use the debugger properly. But anyway it doesn't work at all the file is not updated.
My service worker is only to allow using files in memory (from indexedDB) and the rest of the files just use fetch in Worker (no cache).
I was also trying to use extension resource overwrite but it also doesn't work.
Does anyone know how to change the file locally without modifying an app where the service worker is running?
I'm not sure If I should report this to the Chrome Dev tools team, since this is like a bug or missing an important feature.

How to set csv file to open in the browser instead of download on Site Ground account

I have a simple code that save logs in a 'csv' file on the server.
When I navigate to from the browser to the folder where the file is saved, clicking the file download it instead of opening the file for view in the browser.
I have another site using the same code exactly on the same server, and clicking file from it, open the file for view in the browser.
I use the same browser for both sites, so it is not related to browser settings.
I've tried to change the file privileges, but it didn't help.
This site was originally with a different host, and I thought that moving it to the same host will solve it, but it didn't.
I've tried to talk with the support of the hosting provider, but they say that a developer should handle it.
Replacing the file ending to 'cvs' solved the problem, and opened the file in the browser without any other settings change.

How do I force Azure Apps to use latest html file?

I have a web application hosted on azure apps that I publish using visual studio. It is a flask app. One of the templates is called searchresult.html. I am making changes to this file that are made when I run locally. When I run it on the server though the changes are absent.
Using the azure console I can see that the changes are present in the file that is stored on the server, but the application continues to deliver the old html.
How can I force azure to see my updated file?
Things I have tried:
Deleting the file directly on the server and re-publishing it
Committing changes to git, even though I knew that would do nothing
Testing it locally (it works)
Restarting the application
Since you said you already check the file has been changed on the Kudu, so it supposed not an issue of deployment. You could disable caching in your browser.
such as in chrome browser, navigate to F11 window and select the Disable cache blanket.
or please try to access your website via incognito model.
In addition, I crashed into similar issue with you in other web app. My previous solution is that enable always on option on the portal and restart my app, it worked.
Just for your reference.Hope it helps you.

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.

Appcache manifest downloads all files but still unable to access offline unless they have been accessed online

I have successfully created an appcache manifest that is downloading all of the website content. I have checked this through chrome dev and it's all working.
The issue I am having now is that even although the entire website has been cached, I am unable to access the cached pages when offline, unless I had accessed them online.
I am using Apache and accessing the website via an iPad using safari browser.
I have an idea that this may be due to the server not allowing access to cached pages unless they had been accessed online as some kind of security measure.
Any ideas?
if your files are in PHP or ASP this will not work.
It need to be JavaScript or other files that can be run localy like Image, HTML.