问题
I recently migrate my development website from old computer (WinXP with IIS5.1) to new computer (Win7 with IIS7.5). The application developped using ASP.NET with bunch of javascript and CSS files.
On the new computer, the virtual directory is created under Default Web Site with default configuration but enable ASP.NET Impersonate and Windows Authentication (Anonymous disable)
The application used the Classic Pipeline on Classic .NET AppPool (.NET 2.0) that comes with IIS7.5.
With above configuration, application run fine on IIS5.1 but not on IIS7.5. The page will load correctly but if refresh button is hit, page will load incorrectly by displaying only ASP.NET page without loading JS and CSS.
However, by retyping URL in the address bar and hit enter to reload page, it displays correctly.
At first, I thought it's because IE9 but I can use IE9 to open application on old computer without problem.
If anyone know any clues, please tell me.
Thank you
来源:https://stackoverflow.com/questions/10912763/pages-do-not-load-correctly-only-when-click-refresh-on-win7iis7-5