Clear leverage browser caching of analytics.js, conversion.jsWhen uploading a lot of products admin hangs but...

Is divide-by-zero a security vulnerability?

Is there a frame of reference in which I was born before I was conceived?

Where was Karl Mordo in Infinity War?

Why does Starman/Roadster have radial acceleration?

What's the purpose of these copper coils with resistors inside them in A Yamaha RX-V396RDS amplifier?

How do I construct an nxn matrix?

I am on the US no-fly list. What can I do in order to be allowed on flights which go through US airspace?

What is the difference between throw e and throw new Exception(e)?

When should a commit not be version tagged?

How to count occurrences of Friday 13th

You'll find me clean when something is full

Auto Insert date into Notepad

As a new poet, where can I find help from a professional to judge my work?

How to approximate rolls for potions of healing using only d6's?

Is there any relevance to Thor getting his hair cut other than comedic value?

What to do when being responsible for data protection in your lab, yet advice is ignored?

How to count words in a line

Whom do I have to contact for a ticket refund in case of denied boarding (in the EU)?

What is better: yes / no radio, or simple checkbox?

Is my plan for fixing my water heater leak bad?

Understanding Kramnik's play in game 1 of Candidates 2018

Find the next monthly expiration date

What is a term for a function that when called repeatedly, has the same effect as calling once?

How do ISS astronauts "get their stripes"?



Clear leverage browser caching of analytics.js, conversion.js


When uploading a lot of products admin hangs but can be accessed from different browserSpeed Up Magento SiteERR_EMPTY_RESPONSE received for one specific configuration page. Caching Problem?PageSpeed JavaScript LoadingNavigation Pre-Loads on Certain Pageslink redirection not working on live serverMagento Backend horribly slow Nginx + PHP-FPM + MariaDB + RedisLeverage browser caching having Varnish installedMagento site showing white page before load contentLeverage browser caching magento 1.9 Not Working Htacess













1















How to clear Leverage browser caching.Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network.



enter image description here










share|improve this question














bumped to the homepage by Community 8 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    1















    How to clear Leverage browser caching.Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network.



    enter image description here










    share|improve this question














    bumped to the homepage by Community 8 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      1












      1








      1








      How to clear Leverage browser caching.Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network.



      enter image description here










      share|improve this question














      How to clear Leverage browser caching.Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network.



      enter image description here







      magento-1.9 google-analytics






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 27 '17 at 7:15









      GaganGagan

      766




      766





      bumped to the homepage by Community 8 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 8 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          You can expire cache with below code.This code will be put in .htaccess file in root directory.



          ## Leverage Browser Caching ##
          <IfModule mod_expires.c>
          ExpiresActive On
          ExpiresByType image/jpg "access 1 year"
          ExpiresByType image/jpeg "access 1 year"
          ExpiresByType image/gif "access 1 year"
          ExpiresByType image/png "access 1 year"
          ExpiresByType text/css "access 1 month"
          ExpiresByType text/html "access 1 month"
          ExpiresByType application/pdf "access 1 month"
          ExpiresByType text/x-javascript "access 1 month"
          ExpiresByType application/x-shockwave-flash "access 1 month"
          ExpiresByType image/x-icon "access 1 year"
          ExpiresDefault "access 1 month"
          </IfModule>
          ## Leverage Browser Caching ##


          You can also use below code for Enable compression:



          # Enable Compression
          <IfModule mod_deflate.c>
          AddOutputFilterByType DEFLATE application/javascript
          AddOutputFilterByType DEFLATE application/rss+xml
          AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
          AddOutputFilterByType DEFLATE application/x-font
          AddOutputFilterByType DEFLATE application/x-font-opentype
          AddOutputFilterByType DEFLATE application/x-font-otf
          AddOutputFilterByType DEFLATE application/x-font-truetype
          AddOutputFilterByType DEFLATE application/x-font-ttf
          AddOutputFilterByType DEFLATE application/x-javascript
          AddOutputFilterByType DEFLATE application/xhtml+xml
          AddOutputFilterByType DEFLATE application/xml
          AddOutputFilterByType DEFLATE font/opentype
          AddOutputFilterByType DEFLATE font/otf
          AddOutputFilterByType DEFLATE font/ttf
          AddOutputFilterByType DEFLATE image/svg+xml
          AddOutputFilterByType DEFLATE image/x-icon
          AddOutputFilterByType DEFLATE text/css
          AddOutputFilterByType DEFLATE text/html
          AddOutputFilterByType DEFLATE text/javascript
          AddOutputFilterByType DEFLATE text/plain
          </IfModule>
          <IfModule mod_gzip.c>
          mod_gzip_on Yes
          mod_gzip_dechunk Yes
          mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
          mod_gzip_item_include handler ^cgi-script$
          mod_gzip_item_include mime ^text/.*
          mod_gzip_item_include mime ^application/x-javascript.*
          mod_gzip_item_exclude mime ^image/.*
          mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
          </IfModule>


          You can change time as per your requirement.I have used this in many websites and worked perfectly.



          Hope this will help you.






          share|improve this answer


























          • I used this tag in .htaccess file but browser caching problem show of google conversion.js , analytics.js

            – Gagan
            Oct 27 '17 at 7:56











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "479"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f198904%2fclear-leverage-browser-caching-of-analytics-js-conversion-js%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          You can expire cache with below code.This code will be put in .htaccess file in root directory.



          ## Leverage Browser Caching ##
          <IfModule mod_expires.c>
          ExpiresActive On
          ExpiresByType image/jpg "access 1 year"
          ExpiresByType image/jpeg "access 1 year"
          ExpiresByType image/gif "access 1 year"
          ExpiresByType image/png "access 1 year"
          ExpiresByType text/css "access 1 month"
          ExpiresByType text/html "access 1 month"
          ExpiresByType application/pdf "access 1 month"
          ExpiresByType text/x-javascript "access 1 month"
          ExpiresByType application/x-shockwave-flash "access 1 month"
          ExpiresByType image/x-icon "access 1 year"
          ExpiresDefault "access 1 month"
          </IfModule>
          ## Leverage Browser Caching ##


          You can also use below code for Enable compression:



          # Enable Compression
          <IfModule mod_deflate.c>
          AddOutputFilterByType DEFLATE application/javascript
          AddOutputFilterByType DEFLATE application/rss+xml
          AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
          AddOutputFilterByType DEFLATE application/x-font
          AddOutputFilterByType DEFLATE application/x-font-opentype
          AddOutputFilterByType DEFLATE application/x-font-otf
          AddOutputFilterByType DEFLATE application/x-font-truetype
          AddOutputFilterByType DEFLATE application/x-font-ttf
          AddOutputFilterByType DEFLATE application/x-javascript
          AddOutputFilterByType DEFLATE application/xhtml+xml
          AddOutputFilterByType DEFLATE application/xml
          AddOutputFilterByType DEFLATE font/opentype
          AddOutputFilterByType DEFLATE font/otf
          AddOutputFilterByType DEFLATE font/ttf
          AddOutputFilterByType DEFLATE image/svg+xml
          AddOutputFilterByType DEFLATE image/x-icon
          AddOutputFilterByType DEFLATE text/css
          AddOutputFilterByType DEFLATE text/html
          AddOutputFilterByType DEFLATE text/javascript
          AddOutputFilterByType DEFLATE text/plain
          </IfModule>
          <IfModule mod_gzip.c>
          mod_gzip_on Yes
          mod_gzip_dechunk Yes
          mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
          mod_gzip_item_include handler ^cgi-script$
          mod_gzip_item_include mime ^text/.*
          mod_gzip_item_include mime ^application/x-javascript.*
          mod_gzip_item_exclude mime ^image/.*
          mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
          </IfModule>


          You can change time as per your requirement.I have used this in many websites and worked perfectly.



          Hope this will help you.






          share|improve this answer


























          • I used this tag in .htaccess file but browser caching problem show of google conversion.js , analytics.js

            – Gagan
            Oct 27 '17 at 7:56
















          0














          You can expire cache with below code.This code will be put in .htaccess file in root directory.



          ## Leverage Browser Caching ##
          <IfModule mod_expires.c>
          ExpiresActive On
          ExpiresByType image/jpg "access 1 year"
          ExpiresByType image/jpeg "access 1 year"
          ExpiresByType image/gif "access 1 year"
          ExpiresByType image/png "access 1 year"
          ExpiresByType text/css "access 1 month"
          ExpiresByType text/html "access 1 month"
          ExpiresByType application/pdf "access 1 month"
          ExpiresByType text/x-javascript "access 1 month"
          ExpiresByType application/x-shockwave-flash "access 1 month"
          ExpiresByType image/x-icon "access 1 year"
          ExpiresDefault "access 1 month"
          </IfModule>
          ## Leverage Browser Caching ##


          You can also use below code for Enable compression:



          # Enable Compression
          <IfModule mod_deflate.c>
          AddOutputFilterByType DEFLATE application/javascript
          AddOutputFilterByType DEFLATE application/rss+xml
          AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
          AddOutputFilterByType DEFLATE application/x-font
          AddOutputFilterByType DEFLATE application/x-font-opentype
          AddOutputFilterByType DEFLATE application/x-font-otf
          AddOutputFilterByType DEFLATE application/x-font-truetype
          AddOutputFilterByType DEFLATE application/x-font-ttf
          AddOutputFilterByType DEFLATE application/x-javascript
          AddOutputFilterByType DEFLATE application/xhtml+xml
          AddOutputFilterByType DEFLATE application/xml
          AddOutputFilterByType DEFLATE font/opentype
          AddOutputFilterByType DEFLATE font/otf
          AddOutputFilterByType DEFLATE font/ttf
          AddOutputFilterByType DEFLATE image/svg+xml
          AddOutputFilterByType DEFLATE image/x-icon
          AddOutputFilterByType DEFLATE text/css
          AddOutputFilterByType DEFLATE text/html
          AddOutputFilterByType DEFLATE text/javascript
          AddOutputFilterByType DEFLATE text/plain
          </IfModule>
          <IfModule mod_gzip.c>
          mod_gzip_on Yes
          mod_gzip_dechunk Yes
          mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
          mod_gzip_item_include handler ^cgi-script$
          mod_gzip_item_include mime ^text/.*
          mod_gzip_item_include mime ^application/x-javascript.*
          mod_gzip_item_exclude mime ^image/.*
          mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
          </IfModule>


          You can change time as per your requirement.I have used this in many websites and worked perfectly.



          Hope this will help you.






          share|improve this answer


























          • I used this tag in .htaccess file but browser caching problem show of google conversion.js , analytics.js

            – Gagan
            Oct 27 '17 at 7:56














          0












          0








          0







          You can expire cache with below code.This code will be put in .htaccess file in root directory.



          ## Leverage Browser Caching ##
          <IfModule mod_expires.c>
          ExpiresActive On
          ExpiresByType image/jpg "access 1 year"
          ExpiresByType image/jpeg "access 1 year"
          ExpiresByType image/gif "access 1 year"
          ExpiresByType image/png "access 1 year"
          ExpiresByType text/css "access 1 month"
          ExpiresByType text/html "access 1 month"
          ExpiresByType application/pdf "access 1 month"
          ExpiresByType text/x-javascript "access 1 month"
          ExpiresByType application/x-shockwave-flash "access 1 month"
          ExpiresByType image/x-icon "access 1 year"
          ExpiresDefault "access 1 month"
          </IfModule>
          ## Leverage Browser Caching ##


          You can also use below code for Enable compression:



          # Enable Compression
          <IfModule mod_deflate.c>
          AddOutputFilterByType DEFLATE application/javascript
          AddOutputFilterByType DEFLATE application/rss+xml
          AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
          AddOutputFilterByType DEFLATE application/x-font
          AddOutputFilterByType DEFLATE application/x-font-opentype
          AddOutputFilterByType DEFLATE application/x-font-otf
          AddOutputFilterByType DEFLATE application/x-font-truetype
          AddOutputFilterByType DEFLATE application/x-font-ttf
          AddOutputFilterByType DEFLATE application/x-javascript
          AddOutputFilterByType DEFLATE application/xhtml+xml
          AddOutputFilterByType DEFLATE application/xml
          AddOutputFilterByType DEFLATE font/opentype
          AddOutputFilterByType DEFLATE font/otf
          AddOutputFilterByType DEFLATE font/ttf
          AddOutputFilterByType DEFLATE image/svg+xml
          AddOutputFilterByType DEFLATE image/x-icon
          AddOutputFilterByType DEFLATE text/css
          AddOutputFilterByType DEFLATE text/html
          AddOutputFilterByType DEFLATE text/javascript
          AddOutputFilterByType DEFLATE text/plain
          </IfModule>
          <IfModule mod_gzip.c>
          mod_gzip_on Yes
          mod_gzip_dechunk Yes
          mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
          mod_gzip_item_include handler ^cgi-script$
          mod_gzip_item_include mime ^text/.*
          mod_gzip_item_include mime ^application/x-javascript.*
          mod_gzip_item_exclude mime ^image/.*
          mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
          </IfModule>


          You can change time as per your requirement.I have used this in many websites and worked perfectly.



          Hope this will help you.






          share|improve this answer















          You can expire cache with below code.This code will be put in .htaccess file in root directory.



          ## Leverage Browser Caching ##
          <IfModule mod_expires.c>
          ExpiresActive On
          ExpiresByType image/jpg "access 1 year"
          ExpiresByType image/jpeg "access 1 year"
          ExpiresByType image/gif "access 1 year"
          ExpiresByType image/png "access 1 year"
          ExpiresByType text/css "access 1 month"
          ExpiresByType text/html "access 1 month"
          ExpiresByType application/pdf "access 1 month"
          ExpiresByType text/x-javascript "access 1 month"
          ExpiresByType application/x-shockwave-flash "access 1 month"
          ExpiresByType image/x-icon "access 1 year"
          ExpiresDefault "access 1 month"
          </IfModule>
          ## Leverage Browser Caching ##


          You can also use below code for Enable compression:



          # Enable Compression
          <IfModule mod_deflate.c>
          AddOutputFilterByType DEFLATE application/javascript
          AddOutputFilterByType DEFLATE application/rss+xml
          AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
          AddOutputFilterByType DEFLATE application/x-font
          AddOutputFilterByType DEFLATE application/x-font-opentype
          AddOutputFilterByType DEFLATE application/x-font-otf
          AddOutputFilterByType DEFLATE application/x-font-truetype
          AddOutputFilterByType DEFLATE application/x-font-ttf
          AddOutputFilterByType DEFLATE application/x-javascript
          AddOutputFilterByType DEFLATE application/xhtml+xml
          AddOutputFilterByType DEFLATE application/xml
          AddOutputFilterByType DEFLATE font/opentype
          AddOutputFilterByType DEFLATE font/otf
          AddOutputFilterByType DEFLATE font/ttf
          AddOutputFilterByType DEFLATE image/svg+xml
          AddOutputFilterByType DEFLATE image/x-icon
          AddOutputFilterByType DEFLATE text/css
          AddOutputFilterByType DEFLATE text/html
          AddOutputFilterByType DEFLATE text/javascript
          AddOutputFilterByType DEFLATE text/plain
          </IfModule>
          <IfModule mod_gzip.c>
          mod_gzip_on Yes
          mod_gzip_dechunk Yes
          mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
          mod_gzip_item_include handler ^cgi-script$
          mod_gzip_item_include mime ^text/.*
          mod_gzip_item_include mime ^application/x-javascript.*
          mod_gzip_item_exclude mime ^image/.*
          mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
          </IfModule>


          You can change time as per your requirement.I have used this in many websites and worked perfectly.



          Hope this will help you.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Oct 27 '17 at 7:26

























          answered Oct 27 '17 at 7:21









          akgolaakgola

          1,372519




          1,372519













          • I used this tag in .htaccess file but browser caching problem show of google conversion.js , analytics.js

            – Gagan
            Oct 27 '17 at 7:56



















          • I used this tag in .htaccess file but browser caching problem show of google conversion.js , analytics.js

            – Gagan
            Oct 27 '17 at 7:56

















          I used this tag in .htaccess file but browser caching problem show of google conversion.js , analytics.js

          – Gagan
          Oct 27 '17 at 7:56





          I used this tag in .htaccess file but browser caching problem show of google conversion.js , analytics.js

          – Gagan
          Oct 27 '17 at 7:56


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f198904%2fclear-leverage-browser-caching-of-analytics-js-conversion-js%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

          How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

          夢乃愛華...