Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1401690
    BlackWaves
    Participant

    Hello Themeco-Team,

    I`ve made a huge mess. I tried to optimize my page since Google PageSpeed Insights asked me to enable browser caching.
    I found an online article and inserted in the htaccess at the end the following code:

    ## EXPIRES 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 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 2 days"
    </IfModule>
    ## EXPIRES CACHING ##
    
    <filesMatch "\\.(js|js.gz)$">
    Header set Cache-Control "max-age=604800, private"
    </filesMatch>
    

    Now my rating went down dramatically since Google is complaining the compression should be activated (for gzip and deflate).
    In advance I made a copy of the original htaccess and now uploaded this original, but it is still not working. I think I deactivated something in the X-Theme?!? How can I change back to the orignial state and reactivate the compression?

    I really hope you can help me solve this issue.

    #1401691
    BlackWaves
    Participant
    This reply has been marked as private.
    #1401856
    Joao
    Moderator

    Hi There,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks

    #1401887
    BlackWaves
    Participant
    This reply has been marked as private.
    #1402642
    Rad
    Moderator

    Hi there,

    You should install optimization plugin, they will compress and will provide GZIP encoding for the served files. You can try Autoptimize or W3 Total cache.

    Thanks!

    #1402826
    BlackWaves
    Participant

    Hey,

    Thank you so much!
    I used W3 Total cache and it worked perfectly!

    You guys are great!

    #1402874
    Christopher
    Moderator

    You’re most welcome.

  • <script> jQuery(function($){ $("#no-reply-1401690 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>