随机页面不会加载任何CSS文件,然后自动修复自己?

时间:2016-06-27 14:27:35

标签: jquery html css asp.net iis

我在Asp.net有一个网站,有时候不会加载任何css文件。它会在某些电影上随机发生,然后在几个小时后自行修复(我想是因为在服务器上重新缓存)

例如我有一个电影页面www.example.com.au/Movie/Mr-Right和www.example.com.au/Movie/Everybody想要一些

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml">
   <head><title>
     Dendy Cinemas: Everybody Wants Some 
   </title><meta property="og:type" content="movie" /><meta        property="og:title" content="Dendy Cinemas: Everybody Wants Some " /><meta property="og:url" content="http://www.dendy.com.au/Movie/Everybody-Wants-Some"        /><meta name="keywords" content="Dendy, Dendy Cinemas, Dendy Canberra, Dendy        Opera Quays, Dendy Newtown, Dendy Portside, Dendy Brisbane, Dendy Byron Bay, Session Times, Movies, Ballet, Opera" /><meta name="description" content="A group of college baseball players navigate their way through the freedoms and responsibilities of unsupervised adulthood." /><meta property="og:description" content="A group of college baseball players navigate their way through the freedoms and responsibilities of unsupervised adulthood." /><meta property="og:image" content="http://www.dendy.com.au/SharedContent/4hKMvTS35U6ACDPcViUrqg.jpg" />       </head>
   <body>
       <form name="form1" method="post" action="Everybody-Wants-Some" id="form1">
   <div>
   <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"        value="/wEPDwULLTIwNzE1OTQxODdkZOSb2/BkiFCf2AWGsmI7Mr5F13nl" />
   </div>

   <div>

       <input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="5415F9F0" />
   </div>
       <div>
    <h1>
        Dendy Cinemas: Everybody Wants Some 
    </h1>
    <p>
        Rated MA15+, 117 mins.
        Starring Blake Jenner, Tyler Hoechlin, Ryan Guzman .
        A group of college baseball players navigate their way through the freedoms and responsibilities of unsupervised adulthood.
    </p>
    <img src="http://www.dendy.com.au/SharedContent/4hKMvTS35U6ACDPcViUrqg.jpg" title="Everybody Wants Some " />
</div>
</form>

第一个加载所有内容都很好,但其他加载的信息比标题和概要少 两个页面都使用相同的电影页面和母版页面以及网站主要CSS文件。相同的aspx页面相同的代码,只有不同的是它中的电影细节。

我使用IIS 7.5并检查了&#34;静态内容&#34;安装在服务器上。我还做了一些研究,发现了一篇建议从特定用户(IUSR)&#34;更改匿名身份验证凭据的文章。到#34;应用程序池标识&#34; 我不想进行此更改,因为我知道是否需要重新启动IIS,而我无法在高峰时段进行重新启动。

有解决方法吗?

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题,事实证明这是由于我的身份验证问题所致?在配置文件中,当用户未经过身份验证/登录时阻止了css加载。