Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why could my website be 'loading' twice?

or at least that's what pingdom says, and i think it's a pretty reliable service,

Notes:

  1. APACHE: php & mysql
  2. No iframes
  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
    

I am just looking for possible causes

like image 543
Toni Michel Caubet Avatar asked Dec 16 '22 02:12

Toni Michel Caubet


2 Answers

Has nothing to do with your .htaccess

Perused your site code. You've got this little bit in your "Last Activity" section:

<img src="http://keepyourlinks.com/" width="30" height="30"/>

... you're loading your whole page again in an image tag.

More context, to help you find where it's being generated:

<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>
like image 112
Jason Avatar answered Jan 03 '23 23:01

Jason


This is old, but I just had a similar problem. The issue was with the css in a div's class. I had a background:url(); as a placeholder (intending to supply an image later) but forgot about it.

With a blank background url, the page loading twice issue occurs with FF19. I noticed the issue using LiveHTTPheaders. Haven't tested with other browsers/versions. Removing it fixes the issue. Adding it back reintroduces the issue repeatably.

like image 20
micahs72 Avatar answered Jan 03 '23 21:01

micahs72