Test Website Update (IIS)

I have a website hosted on IIS to do some testing. However, whenever I change the html files in the website directory and browse the web page in my browser (chrome), nothing changes. Do I need to force a server upgrade and see new changes, or is there something else?

+4
source share
4 answers

I think the problem is not server related. (Of course, you can try rebooting the server or system if all else fails)

Try the following

  • Clear cookies, browsing history.
  • Then force refresh the page by pressing F5 / CTRL + F5 / CTRL + R.
  • Check with another browser
+5
source

AFAIK you do not need to force IIS reset or anything like that. Since other comments and answers already suggested something else, it probably happens:

  • browser cache
  • Perhaps IIS does not serve the files you are changing (possibly a duplicate)
  • ... etc.

Try Rubber Duck Debugging to find the problem, they helped me more than once with this look: "This should work, why isn’t it? The problem.

+1
source

I have been using IIS for over ten years now, and it knows a lot about changes in your content and serves the latest versions. You do not need to update it. Some files, such as web.config or global.asa, are special, and when they change, IIS automatically reloads the site for you.

Mig types such as html, txt, gif and jpeg are considered proxy servers and browsers very static and are aggressively cached in these layers (vs asp, jsp, etc.).

This superuser question is talking about updating in Chrome - apparently this is not always easy.

If, however, you want to give IIS the easiest command line method:

iisreset 

I doubt this will fix your problem, but it may make you feel better :)

0
source

It could be the browser cache (and yes, sometimes Chrome is too smart). As you can see, people here answer, their decisions can help. However, I would like to indicate the possible problems of each solution and give my favorite solution.

  • pure browser history: no one likes it, it’s rather annoying that you need to clear the time.
  • force update using f5 or ctrl + f5: sometimes this does not work.
  • check with another browser: you may encounter the same problem when you make another change.

My favorite solution is that if your URL is "http: //localhost/page1.html", you can call it like "http: //localhost/page1.html? Fake = xxxxx". Xxxx can be any. You can change whatever you want. This solution fakes different URLs for browsers, but actually it is not.

0
source

Source: https://habr.com/ru/post/1382176/


All Articles