Leverage browser caching of static assets
|
05-15-2014, 03:00 AM
(This post was last modified: 05-15-2014 03:02 AM by esther11.)
Post: #1
|
|||
|
|||
Leverage browser caching of static assets
Hi,
I have already used WP Super Cache plugin for my Wordpress site and added following codes to .htaccess file but still got the F for cache static content. http://www.webpagetest.org/performance_o...1&cached=0 Code: ## EXPIRES CACHING ## |
|||
05-15-2014, 03:07 AM
(This post was last modified: 05-15-2014 03:35 AM by Anton Chigurh.)
Post: #2
|
|||
|
|||
RE: Leverage browser caching of static assets
CloudFlare makes your .htaccess file useless. It's bypassed. Disable CF and run these tests again to see what I'm talking about.
I use this code in .htaccess for leveraging of browser caching: Code: <IfModule mod_expires.c> Additionally, I test using IE 10 or 11 only, to get the full picture of what is happening with a given site. Chrome can mask alot of the responses for some reason, robbing you of the full picture. In this test of your site, it's clear you also need to compress and optimize images. This will take almost 1 megabyte off your pageload and will improve performance without losing any content. Might even improve that time to first byte, which incidentally is far off the target for this test. Some of that is actually added, by CloudFlare. Turning off CF will immediately improve that TTFB some. EDIT to add: This call: Code: http://kpopexplorer.net/wp-content/plugins/wp-pagenavi/pagenavi-css.css?ver=2.70 Additionally, calls 13-20 and 51 in this test waterfall view are coming from third party hosting, namely tinypic. You have no control over these images and can't optimize them if they aren't hosted locally. If they're not dynamic content, I suggest hosting them locally after optimization. |
|||
05-15-2014, 10:33 PM
Post: #3
|
|||
|
|||
RE: Leverage browser caching of static assets
thank you very much for your reply. It helps a lot!
|
|||
05-27-2014, 01:21 PM
Post: #4
|
|||
|
|||
RE: Leverage browser caching of static assets
Hi Anton Chigurh,
When I disable Cloudfare, my TTFB improves but Keep-Alive goes down. http://www.webpagetest.org/result/140527_PH_3FD/ Should I consider keep TTFB high or Keep-Alive? |
|||
05-28-2014, 12:10 AM
Post: #5
|
|||
|
|||
RE: Leverage browser caching of static assets
It's not just the keep-alive, the TTFB for your static resources looks like they also come back relatively slowly. Try doing a bunch more tests (9+) and see if the base page TTFB is consistently fast. If so, reach out to Cloudflare support and your hosting company and have them work together. It's possible that they are doing IP-Based rate-limiting or something like that.
The keep-alives is also a problem with your hosting provider and usually a strong sign that they are WAY over-subscribed. If they can't/wont enable keep-alives then you should switch hosts - period (and let everyone here know so nobody else uses them - rewarding that behavior is killing performance). |
|||
05-30-2014, 03:18 PM
Post: #6
|
|||
|
|||
RE: Leverage browser caching of static assets
My site result displays some weird links in 'Leverage browser caching of static assets' sections.
http://www.webpagetest.org/result/140530_93_559/ Recently, I implement Disqus comment system and some affiliate programs on the website. |
|||
05-31-2014, 12:26 AM
Post: #7
|
|||
|
|||
RE: Leverage browser caching of static assets
Those look like a combination of retargeting pixels, ads stuff and some from Disqus. I wouldn't be surprised if the "affiliate" programs were doing all sorts of user tracking/retargeting which is what you are seeing.
|
|||
02-25-2017, 05:16 PM
Post: #8
|
|||
|
|||
RE: Leverage browser caching of static assets
You can easily Leverage Browser Caching on WordPress. Follow this guide: https://www.wpmyweb.com/how-to/easily-le...press.html
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)