Browser cache, specific URL

Discussion in 'LiteSpeed Cache General' started by Siglo, Sep 12, 2017.

  1. Siglo

    Siglo New Member

    Hello,
    LiteSpeed Cache,Can I set, cache the following URL?

    https://connect.facebook.net/en_US/all.js ( 20 minutes )
    https://api-cdn.amazon.com/sdk/login1.js ( 20 minutes )
    https://www.google-analytics.com/plugins/ua/ec. js
    https://www.google-analytics.com/plugins/ua/linkid.js
    https://ssl.google-analytics.com/ga.js
    https://www.google-analytics.com/analytics.js

    .htaccess How should I edit?
    thank you all

    This is my .htaccess
    <IfModule LiteSpeed>
    RewriteEngine On
    CacheDisable public /
    RewriteCond %{REQUEST_METHOD} ^GET|HEAD|PURGE$
    RewriteCond %{HTTP_HOST} ^(www.)?xxx.xxx.com [NC]
    RewriteCond %{REQUEST_URI} !xxx.xxx.com/xxx|404|address|authentication|best-sales|cart|contact|discount|guest-tracking|history|identity|order|password|products-comparison|search|account|friend|login|logout|addresses|contact-us|order-history|my-account|order-confirmation|order-follow|quick-order|credit-slip|password-recovery [NC]
    RewriteCond %{HTTP_COOKIE} !logged|cart [NC]
    RewriteCond %{QUERY_STRING} !nocache [NC]
    RewriteRule .* - [E=Cache-Control:max-age=900]
    </IfModule>

    thank you all
     
  2. NiteWave

    NiteWave Administrator

    unfortunately you can't. they're controlled by facebook, amason, google, nobody except themselves can control that.
     

Share This Page