Home Forums WordPress Plugins Hide My WP New theme path / New style name – Broken browsercaching

This topic is: not resolved
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #16428
    jasper
    Post count: 2

    Hi,

    we noticed the maxage in the header of the renamed css files is incorrect. it’s set to 3 days (maxage=259200) however for SEO purposes we setup the server to set cache for text/css to 30 days (maxage=2592000) is there any way we can change the cache for these files to 30 days ?

    #16429
    Suman M.
    Post count: 12480

    Hi, please generate debug report from HMWP start tab and post it here as private reply. Also let us know the CSS file (URL) in question above.

    #16482
    jasper
    Post count: 2
    This reply has been marked as private.
    #16494
    Suman M.
    Post count: 12480

    Have you added browser cache rules in your site’s .htaccess file? Please make sure you do – https://gtmetrix.com/leverage-browser-caching.html

    And if the file is included twice then you can remove one of the includes (like from /BottlePostMedia/main.css)

    #16521
    jasper
    Post count: 2

    Hi, we have this setup in appache on the server in Additional Apache directives

    <IfModule mod_expires.c>
        ExpiresActive on
        ExpiresDefault                                      "access plus 1 month"
    
      # CSS
        ExpiresByType text/css                              "access plus 1 month"
    
      # Data interchange
        ExpiresByType application/json                      "access plus 0 seconds"
        ExpiresByType application/xml                       "access plus 0 seconds"
        ExpiresByType text/xml                              "access plus 0 seconds"
    
      # Favicon (cannot be renamed!) and cursor images
        ExpiresByType image/x-icon                          "access plus 1 week"
    
      # HTML components (HTCs)
        ExpiresByType text/x-component                      "access plus 1 month"
    
      # HTML
        ExpiresByType text/html                             "access plus 0 seconds"
    
      # JavaScript
        ExpiresByType application/javascript                "access plus 1 year"
    
      # Media
        ExpiresByType image/gif                             "access plus 1 month"
        ExpiresByType image/jpeg                            "access plus 1 month"
        ExpiresByType image/png                             "access plus 1 month"
    </IfModule>

    it seems to work for all except the files rewritten by hide my WP

    #16528
    Suman M.
    Post count: 12480

    Hi, I talked with the developers and the maxage of the stylesheet (modified by HMWP) is set to 3 days. Right now there’s no option to change this, but in the upcoming versions of the plugin we’ll be looking into it. Thanks!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.