Php 为什么我的网站会是';装载';两次?
或者至少是这么说的,我认为这是一项非常可靠的服务 注:Php 为什么我的网站会是';装载';两次?,php,apache,load-time,pingdom,Php,Apache,Load Time,Pingdom,或者至少是这么说的,我认为这是一项非常可靠的服务 注: APACHE:php和mysql 没有iframes htaccess: #Gzip <ifmodule mod_deflate.c> AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x- javascript application/javascript </ifmodule> #E
#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
#Gzip
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
#结束Gzip
#480周
标题集缓存控制“最大年龄=290304000,公共”
#1周
标题集缓存控制“最大年龄=604800,公共”
重新启动发动机
ErrorDocument 500/oohps.php
ErrorDocument 404/where.php
重写COND%{HTTP_HOST}^www.keepyourlinks.com[NC]
重写规则^(.*)$http://keepyourlinks.com/$1[L,R=301]
重写COND%{HTTP_HOST}^www.keepyourlinks.byethost32.com[NC]
重写规则^(.*)$http://keepyourlinks.com/$1[L,R=301]
RewriteCond%{HTTP_HOST}^keepyourlinks.byethost32.com[NC]
重写规则^(.*)$http://keepyourlinks.com/$1[L,R=301]
RewriteCond%{HTTP_HOST}^keepyourlinks.com/pre/[NC]
重写规则^(.*)$http://keepyourlinks.com/$1[L,R=301]
重写cond%{HTTP_HOST}^piscolabis.info$
RewriteCond%{REQUEST_URI}^/keepyourlinks.com[NC]
重写规则^(.*)$http://keepyourlinks.com/$1[L,R=301]
#韦伯斯苏埃尔塔斯酒店
重写规则^facebook喜欢$fbmate.html
重写规则^api\u网站管理员$api.php
#选项+FollowSymLinks
重写基/
重写规则^keep/(.+)/(.+)link1.php?id=$1
重写规则^article/(.+)/(.+)?tipo=questions&que=view&id=$1
重写规则^file/(.+)/(.+)?tipo=files&que=view&id=$1
重写规则^user/(.+)/(.+)?que=usuario&id=$1
重写规则^categories/(.+)/(.+)listareneces.php?id=$1
我只是在寻找可能的原因与您的.htaccess无关 仔细阅读你的网站代码。在“最后一项活动”部分,您已经了解了这一点:
。。。您正在图像标签中再次加载整个页面
更多上下文,以帮助您找到生成它的位置:
<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>
哈科门塔多
72迪亚斯:
这本书是一本非常好的书。欧洲水化研究所(EHI)是一家为保护人类健康和认知功能而设立的基金会。
这是个老问题,但我也遇到了类似的问题。问题是一个div类中的css。我有一个背景:url()
作为占位符(打算稍后提供图像),但忘记了它
如果背景url为空,则FF19会出现页面加载两次的问题。我注意到了使用LiveHTTPheaders的问题。尚未使用其他浏览器/版本进行测试。删除它可以解决问题。将其添加回去会重复地重新引入问题。只想与大家分享我对同一问题的看法 我忘记了代码行,它为背景图像创建了具有内联样式的div元素,并且使用了未定义的变量:
style="background-image: url( <?php echo $image_url ?>)"
style=“背景图像:url()”
这将错误消息打印成样式而不是url,并且该元素第二次加载了我的页面,因此每次视图计数器增加2。在修复其他内容时意外发现它。在我的情况下,每次访问它们时,只有“/index.php”和“/”加载了两次
发生这种情况是因为我的虚拟主机配置文件(apache)中的“/etc/apache2/sites available/”中有以下行:
FallbackResource/index.php
在我删除“后备资源”行后,一切都按预期进行。
我上面提到的链接/页面不再重复加载。为什么突出显示#注释会如此之大?只想注意:Apache daemon忽略字体size@ToniMichelCaubet:如果代码位于列表中,则需要将代码缩进8个空格,而不是4个空格。似乎是markdown编辑器中的一个bug,它不会自动执行。@galymzhan我不明白你是怎么看的?阅读代码还是使用了一些工具?谢谢!好吧,我一开始假设这就是问题所在(或类似的问题),所以我只是在源代码中搜索你的域,直到我发现一个标签试图不正确地加载它。我做出这样的假设是因为它显然是在重新加载整个页面而没有重新加载页面,所以我知道一定有某个元素在抓取它;谢谢你的评论,帮了我很多
style="background-image: url( <?php echo $image_url ?>)"
<VirtualHost XXX.localhost:80>
FallbackResource /index.php
</VirtualHost>