为什么我的网站可以"加载"两次?

Ton*_*bet 4 php apache load-time pingdom

或者至少这是pingdom所说的,我认为这是一项非常可靠的服务,

笔记:

  1. APACHE:php和mysql
  2. 没有iframe
  3. htaccess的:

    #Gzip
    <ifmodule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x- javascript application/javascript
    </ifmodule>
    #End Gzip
    
    
    # 480 weeks
    <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|css|swf)$">
    Header set Cache-Control "max-age=290304000, public"
    </FilesMatch>
    
    # 1 weeks
    <FilesMatch "\.(js)$">
    Header set Cache-Control "max-age=604800, public"
    </FilesMatch>
    
    RewriteEngine On
    
    
    ErrorDocument 500 /oohps.php
    ErrorDocument 404 /where.php
    
    
    RewriteCond %{HTTP_HOST} ^www.keepyourlinks.com [NC]
    RewriteRule ^(.*)$ http://keepyourlinks.com/$1 [L,R=301]
    
    RewriteCond %{HTTP_HOST} ^www.keepyourlinks.byethost32.com [NC]
    RewriteRule ^(.*)$ http://keepyourlinks.com/$1 [L,R=301]
    
    RewriteCond %{HTTP_HOST} ^keepyourlinks.byethost32.com [NC]
    RewriteRule ^(.*)$ http://keepyourlinks.com/$1 [L,R=301]
    
    RewriteCond %{HTTP_HOST} ^keepyourlinks.com/pre/ [NC]
    RewriteRule ^(.*)$ http://keepyourlinks.com/$1 [L,R=301]
    
    RewriteCond %{HTTP_HOST} ^piscolabis.info$
    RewriteCond %{REQUEST_URI} ^/keepyourlinks.com [NC]
    RewriteRule ^(.*)$ http://keepyourlinks.com/$1 [L,R=301]
    
    
    #Webs Sueltas
    
    RewriteRule ^facebook-likes$ fbmate.html
    RewriteRule ^api_webmasters$ API.php
    
    
    
    #Options +FollowSymLinks
    
    
    
    RewriteBase /
    
    RewriteRule ^keep/(.+)/(.+) link1.php?id=$1
    RewriteRule ^article/(.+)/(.+) ?tipo=questions&que=view&id=$1
    RewriteRule ^file/(.+)/(.+) ?tipo=files&que=view&id=$1
    RewriteRule ^user/(.+)/(.+) ?que=usuario&id=$1
    
    RewriteRule ^categories/(.+)/(.+) listarenlaces.php?id=$1
    
    Run Code Online (Sandbox Code Playgroud)

我只是在寻找可能的原因

Jas*_*son 6

与你的.htaccess无关

仔细阅读您的网站代码.你在"最后一个活动"部分中已经有了这一点:

<img src="http://keepyourlinks.com/" width="30" height="30"/>
Run Code Online (Sandbox Code Playgroud)

...您将在图像标记中再次加载整个页面.

更多上下文,以帮助您找到它生成的位置:

<div class="comentario">
    <a href="http://keepyourlinks.com/user/736/laroma">
        <img src="http://keepyourlinks.com/" width="30" height="30"/> laroma
    </a>
    <span class="suave"> ha comentado </span>
    <a href="http://keepyourlinks.com/keep/186577/deshidratacion">deshidratacion</a>
    <span class="fecha"> 72 dias:</span>
    <p>
        La deshidratación es la pérdida excesiva de agua respecto al agua que se ingiere. El European Hydration Institute (EHI) es una fundación creada con el fin de avanzar y profundizar en el conocimiento acerca de la hidratación humana y sus efectos sobre la salud, el bienestar y el rendimiento físico y cognitivo.
    </p>
</div>
Run Code Online (Sandbox Code Playgroud)


小智 5

这是旧的,但我刚刚遇到了类似的问题。问题出在 div 类中的 css 上。我有一个background:url();作为占位符(打算稍后提供图像)但忘记了。

使用空白背景 url 时,FF19 会出现页面加载两次的问题。我注意到使用 LiveHTTPheaders 的问题。尚未使用其他浏览器/版本进行测试。删除它可以解决问题。将其添加回来会重复地重新引入该问题。