pagespeed – 如何禁用特定网址的网页速度?

前端之家收集整理的这篇文章主要介绍了pagespeed – 如何禁用特定网址的网页速度?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我目前在我的新网站上使用页面速度,非常高兴.
但我刚刚意识到我的/ PHPmyadmin现在是空白的.

我知道这是因为pagespeed,因为当我去/ PHPmyadmin /?PageSpeed = off;它又有效了.

所以我的想法是只在/ PHPmyadmin和/ PHPmyadmin / *上禁用pagespeed
/ PHPmyadmin链接使用符号链接.

我正在使用apache2.

这是我在vhost .conf文件中的内容

<Directory /var/www/mywebsite/>

            AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript

            #ModPagespeedEnableFilters lazyload_images,defer_javascript,insert_dns_prefetch,collapse_whitespace

            ModPagespeedEnableFilters lazyload_images,combine_javascript,combine_css

            RewriteBase /
            RewriteRule ^index\.PHP$- [L]
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteRule . /index.PHP [L]

            FileETag none

            ExpiresActive On
            ExpiresDefault "access plus 5 seconds"
            ExpiresByType image/x-icon "access plus 2500000 seconds"
            ExpiresByType image/jpeg "access plus 2500000 seconds"
            ExpiresByType image/png "access plus 2500000 seconds"
            ExpiresByType image/gif "access plus 2500000 seconds"
            ExpiresByType application/x-shockwave-flash "access plus 2500000 seconds"
            ExpiresByType text/css "access plus 600000 seconds"
            ExpiresByType text/javascript "access plus 200000 seconds"
            ExpiresByType application/javascript "access plus 200000 seconds"
            ExpiresByType application/x-javascript "access plus 200000 seconds"
            ExpiresByType text/html "access plus 600 seconds"
            ExpiresByType application/xhtml+xml "access plus 600 seconds"

            Options -Indexes
            AllowOverride All

    </Directory>

任何想法社区?

非常感谢 !!

解决方法

您可以使用普通的apache位置块:
<Location "/PHPmyadmin">
  ModPagespeed off
</Location>

或mod_pagespeed特定指令:

ModPagespeedDisallow "*/PHPmyadmin/*"
原文链接:https://www.f2er.com/html/226159.html

猜你在找的HTML相关文章