Title: Leverage browser caching
Last modified: August 11, 2020

---

# Leverage browser caching

 *  Resolved [davecoledave](https://wordpress.org/support/users/davecoledave/)
 * (@davecoledave)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/leverage-browser-caching-76/)
 * Hi, I have enabled browser caching in lscache plugin. but still Leverage browser
   caching showing
    [https://v1.addthisedge.com/…/_ate.track.config_resp](https://v1.addthisedge.com/…/_ate.track.config_resp)(
   45 seconds) [https://s7.addthis.com/js/300/addthis_widget.js](https://s7.addthis.com/js/300/addthis_widget.js)(
   10 minutes) [https://www.googletagmanager.com/gtag/js?id=UA-107213517-1](https://www.googletagmanager.com/gtag/js?id=UA-107213517-1)(
   15 minutes) [https://i.ytimg.com/…/maxresdefault.jpg](https://i.ytimg.com/…/maxresdefault.jpg)(
   2 hours) [https://i.ytimg.com/…/maxresdefault.jpg](https://i.ytimg.com/…/maxresdefault.jpg)(
   2 hours) [https://www.google-analytics.com/analytics.js](https://www.google-analytics.com/analytics.js)(
   2 hours) [https://z.moat.com/addthismoatframe568911941483/moatframe.js](https://z.moat.com/addthismoatframe568911941483/moatframe.js)(
   4 hours 25 minutes) [https://www.domain.com/wp-content/cache/75e0d2c6_6eef413dc482cc96e5a7b70527c29b56.js](https://www.domain.com/wp-content/cache/75e0d2c6_6eef413dc482cc96e5a7b70527c29b56.js)(
   12 hours) [https://www.domain.com/wp-content/litespeed/cssjs/35594.js?1163e](https://www.domain.com/wp-content/litespeed/cssjs/35594.js?1163e)(
   12 hours)
 * in aapanel>wesite>config> I can see expires line but I am not getting what is
   it.
 * expires {
    enableExpires 1 expiresByType image/=A43200,text/css=A43200,application/
   x-javascript=A43200,application/javascript=A43200,font/=A43200,application/x-
   font-ttf=A43200 }
 * how can I enable Leverage browser caching. In htaccess I can see that expires
   lines have been aded after enabling browser cache via lscache plugin.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/leverage-browser-caching-76/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/leverage-browser-caching-76/page/2/?output_format=md)

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/leverage-browser-caching-76/#post-13238514)
 * Hi,
 * change all these “43200” to “15552000”
 * others are external resources, you can not leverage browser cache on them
 * for these JS , you can try use “localize” feature we just released in v3.3
 * Best regards,
    -  This reply was modified 5 years, 10 months ago by [qtwrk](https://wordpress.org/support/users/qtwrk/).
 *  Thread Starter [davecoledave](https://wordpress.org/support/users/davecoledave/)
 * (@davecoledave)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/leverage-browser-caching-76/#post-13247662)
 * Thank you for quick response. It fixed lots of results in gtmatrix. But some 
   of the urls are not being cached.
 * [https://v1.addthisedge.com/live/boost/ra-/_ate.track.config_resp](https://v1.addthisedge.com/live/boost/ra-/_ate.track.config_resp)(
   24 seconds)
    [https://s7.addthis.com/js/300/addthis_widget.js](https://s7.addthis.com/js/300/addthis_widget.js)(
   10 minutes) [https://www.googletagmanager.com/gtag/js?id=UA-107213517-1](https://www.googletagmanager.com/gtag/js?id=UA-107213517-1)(
   15 minutes) [https://i.ytimg.com/vi/0a5F2AcGJMk/maxresdefault.jpg](https://i.ytimg.com/vi/0a5F2AcGJMk/maxresdefault.jpg)(
   2 hours) [https://i.ytimg.com/vi/Ivx9VbPQAC8/maxresdefault.jpg](https://i.ytimg.com/vi/Ivx9VbPQAC8/maxresdefault.jpg)(
   2 hours) [https://i.ytimg.com/vi/Ni8KPvf1ydQ/maxresdefault.jpg](https://i.ytimg.com/vi/Ni8KPvf1ydQ/maxresdefault.jpg)(
   2 hours) [https://www.google-analytics.com/analytics.js](https://www.google-analytics.com/analytics.js)(
   2 hours) [https://z.moatads.com/addthismoatframe568911941483/moatframe.js](https://z.moatads.com/addthismoatframe568911941483/moatframe.js)(
   7 hours 57 minutes)
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/leverage-browser-caching-76/#post-13253436)
 * Hi,
 * those are external resources, you can NOT put cache control header over external
   resources.
 * in v3.3 , we added a feature for localize the external JS files you can try that,
   but for images , there is nothing we can do about it.
 * Best regards,
 *  Thread Starter [davecoledave](https://wordpress.org/support/users/davecoledave/)
 * (@davecoledave)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/leverage-browser-caching-76/#post-13253748)
 * I have used lots of external images. These three are giving error. Others are
   not giving any issue. How?
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/leverage-browser-caching-76/#post-13253783)
 * which three ?
 *  Thread Starter [davecoledave](https://wordpress.org/support/users/davecoledave/)
 * (@davecoledave)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/leverage-browser-caching-76/#post-13253789)
 * in the above text I have mentiond. I am pasting images.
 * [https://i.ytimg.com/vi/0a5F2AcGJMk/maxresdefault.jpg](https://i.ytimg.com/vi/0a5F2AcGJMk/maxresdefault.jpg)(
   2 hours)
    [https://i.ytimg.com/vi/Ivx9VbPQAC8/maxresdefault.jpg](https://i.ytimg.com/vi/Ivx9VbPQAC8/maxresdefault.jpg)(
   2 hours) [https://i.ytimg.com/vi/Ni8KPvf1ydQ/maxresdefault.jpg](https://i.ytimg.com/vi/Ni8KPvf1ydQ/maxresdefault.jpg)(
   2 hours)
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/leverage-browser-caching-76/#post-13253794)
 * Hi,
 * I have mentioned about images in previous reply
 * > but for images , there is nothing we can do about it.
 * Best regards,
 *  Thread Starter [davecoledave](https://wordpress.org/support/users/davecoledave/)
 * (@davecoledave)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/leverage-browser-caching-76/#post-13253795)
 * sir, then why only three images are giving error? while I used almost 4k+ external
   images.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/leverage-browser-caching-76/#post-13253798)
 * Hi,
 * I actually mentioned that in previous reply as well
 * > those are external resources, you can NOT put cache control header over external
   > resources.
 * you may or may not have issue with external images depends on external site owner
   how to set cache policy on their image
 * if they set image to 2 hours, then you got problem , if they set image to 30 
   days , then you don’t have problem.
 * but regardless the case, this is something you can NOT control.
 * Best regards,
 *  Thread Starter [davecoledave](https://wordpress.org/support/users/davecoledave/)
 * (@davecoledave)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/leverage-browser-caching-76/#post-13264450)
 * I have added these two lines in Localization Domains and purge all. but still
   gtmatrix doesn’t detect it as a lscache.
 * [https://s7.addthis.com/js/300/addthis_widget.js](https://s7.addthis.com/js/300/addthis_widget.js)
   
   [https://z.moatads.com/addthismoatframe568911941483/moatframe.js](https://z.moatads.com/addthismoatframe568911941483/moatframe.js)
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/leverage-browser-caching-76/#post-13264460)
 * Hi,
 * Could you please provide the report number ?
 * You can get it from Toolbox —> report , click “send to LiteSpeed”
 * and what do you mean by “doesn’t detect it as a lscache” ?
 * Best regards,
 *  Thread Starter [davecoledave](https://wordpress.org/support/users/davecoledave/)
 * (@davecoledave)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/leverage-browser-caching-76/#post-13265663)
 * I have sent Report number: BJHNDTSQ
 * I have added js but it still shows in gtmatrix.
 * [https://s7.addthis.com/js/300/addthis_widget.js](https://s7.addthis.com/js/300/addthis_widget.js)(
   10 minutes)
 * Please do not post my domain link here. If it requires you can replace domain
   to example.com
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/leverage-browser-caching-76/#post-13271672)
 * Hi,
 * your original code/link was
 * `<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#
   pubid=ra-"></script>`
 * please try make it
 * `https://s7.addthis.com/js/300/addthis_widget.js`
 * instead of
 * `//s7.addthis.com/js/300/addthis_widget.js`
 * then purge all
 * Best regards,
 *  Thread Starter [davecoledave](https://wordpress.org/support/users/davecoledave/)
 * (@davecoledave)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/leverage-browser-caching-76/#post-13272016)
 * It is already [https://s7.addthis.com/js/300/addthis_widget.js](https://s7.addthis.com/js/300/addthis_widget.js)
   
   Please check screenshot
 * [http://prntscr.com/u1bn6t](http://prntscr.com/u1bn6t)
 *  Thread Starter [davecoledave](https://wordpress.org/support/users/davecoledave/)
 * (@davecoledave)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/leverage-browser-caching-76/#post-13273742)
 * I have removed addthis from theme. Now addthis is not coming in gtmatrix.
 * Now I have checked my website in google page speed and I already minified and
   combined js and css. But it still show all the css.
 * [https://developers.google.com/speed/pagespeed/insights/](https://developers.google.com/speed/pagespeed/insights/)
 * Eliminate render-blocking resources
    2.67 s Resources are blocking the first 
   paint of your page. Consider delivering critical JS/CSS inline and deferring 
   all non-critical JS/styles.
 * [https://www.example.com/data/litespeed/cssjs/786c7a1b597d3a28b538377d8ccbdd98.css?bb554](https://www.example.com/data/litespeed/cssjs/786c7a1b597d3a28b538377d8ccbdd98.css?bb554)
 * [https://www.example.com/inc/js/jquery/jquery.js](https://www.example.com/inc/js/jquery/jquery.js)
 * [https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js](https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js)
 * [https://www.example.com/inc/css/dist/block-library/style.min.css](https://www.example.com/inc/css/dist/block-library/style.min.css)
 * [https://www.example.com/apps/contact-form-7/includes/css/styles.css](https://www.example.com/apps/contact-form-7/includes/css/styles.css)
 * [https://www.example.com/apps/indeed-membership-pro/assets/css/select2.min.css](https://www.example.com/apps/indeed-membership-pro/assets/css/select2.min.css)
 * [https://www.example.com/apps/indeed-membership-pro/assets/css/templates.css](https://www.example.com/apps/indeed-membership-pro/assets/css/templates.css)
 * [https://www.example.com/apps/jetpack/css/jetpack.css](https://www.example.com/apps/jetpack/css/jetpack.css)
 * And some more css like this are showing there.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/leverage-browser-caching-76/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/leverage-browser-caching-76/page/2/?output_format=md)

The topic ‘Leverage browser caching’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 16 replies
 * 2 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/leverage-browser-caching-76/page/2/#post-13290307)
 * Status: resolved