My PHP pages and HTML pages instantly reflect any change I make to them, making it very easy to view my changes as I develop a page.
ASP pages never show any change on the first refresh, and only show their updated content after a 1-2 minute wait. This makes development extremely slow and frustrating.
Why does this happen? Is it simply a quirk of my hosting service that I will have to accept, or is there something I can do about it?
Sounds more like a client problem than a code problem. I’m willing to bet the browser is keeping the page in the cache, instead of requesting a new page every time. You can test this by forcing a no-cache page refresh using CTRL-F5 (should work in most browsers).
After that, you can prevent caching in a handful of ways.
For classic asp:
For ASP.NET markup:
For ASP.NET code behind:
HTML (no guarantee browsers will honor meta tags)