wordpress - Leveraging browser caching issue -


my .htaccess file:

# begin wordpress <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule>  # end wordpress  # expires headers - 2678400s = 31 days  <ifmodule mod_expires.c>    expiresactive on    expiresdefault "access plus 2678400 seconds"    expiresbytype text/html "access plus 7200 seconds"    expiresbytype image/gif "access plus 2678400 seconds"    expiresbytype image/jpeg "access plus 2678400 seconds"    expiresbytype image/png "access plus 2678400 seconds"    expiresbytype text/css "access plus 750000 seconds"    expiresbytype text/javascript "access plus 2678400 seconds"    expiresbytype application/x-javascript "access plus 2678400 seconds"  </ifmodule>   # cache headers  <ifmodule mod_headers.c>    # cache specified files 31 days    <filesmatch "\.(ico|flv|jpg|jpeg|png|gif|css|swf)$">    header set cache-control "max-age=2678400, public"    </filesmatch>    # cache html files couple hours    <filesmatch "\.(html|htm)$">    header set cache-control "max-age=7200, private, must-revalidate"    </filesmatch>    # cache pdfs day    <filesmatch "\.(pdf)$">    header set cache-control "max-age=86400, public"    </filesmatch>    # cache javascripts 31 days    <filesmatch "\.(js)$">    header set cache-control "max-age=2678400, private"    </filesmatch>  </ifmodule>   

www.gtmetrix.com accept leverage browser cache, google page speed not accept files :

https://apis.google.com/js/api.js (30 dakika) https://apis.google.com/js/platform.js (30 dakika) http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js (60 dakika) http://pagead2.googlesyndication.com/pagead/osd.js (60 dakika) https://oauth.googleusercontent.com/…e:rpc:shindig.random:shindig.sha1.js?c=2 (60 dakika) http://www.google-analytics.com/analytics.js (2 saat) 

how fix problem. tried cache plugins super cache, total cache, fast cache. decrease google page speed score. google page speed score 87/100 , gtmetrix 93/100.

my web site : www.guzellikperisi.com

those scripts off server, .htaccess file not apply them - not can do.

to honest, use page speeds suggestions. never rely on page scores. if @ big sites ign.com or newyorktimes.com don't have great scores.

pick , choose want improve. yes it's strive perfection, depends on site.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -