@Zhang, Cen@DTSC Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
I understand that even after deploying the new and updated cshtml file on the IIS, the href attribute is still not updated on the browser.
Thanks for sharing the steps that you have tried so far. This will help us to avoid duplicate efforts in sharing the action plan. I am sharing a few of the action plans which can be followed to isolate this issue further.
Isolation steps:
- Could you please try from a different browser ? Also try opening the browser in private (Incognito) mode and check the behavior? Also try doing hard refresh ( ctrl+ F5) on the browser
- Collect fiddler traces and check the response headers sent by the server. Check the Server Header to confirm if this was indeed IIS or any other intermediate devices.
- Disable the Output Caching on IIS.
- Clear the ASP.NET temporary files from the folder C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files and then rebuild your code.
- Also try browsing your application locally on the IIS (via localhost) and check if you are getting the right values.
- Try adding the HTTP Response Header from the IIS by Navigating to the website and clicking on the HTTP Response Headers and then select Set common headers with below setting, which will add the Cache-Control: nocache response headers in the response.
**
Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.