• Resolved beckseden

    (@beckseden)


    Hi

    When i do a performance test, I get a response saying I need to “Serve static assets with an efficient cache policy” and that page is serving following 29 resources with an inefficient cache policy.

    When I click to go to the cache status, I see that the cache types are all set at the recommended expiry period (8 days), auto browser caching is active, and hummingbird has auto detected the server type (apache). So I don’t see how else I can improve this. Any tips?

    Thanks

    Becky

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Nastia – WPMU DEV Support

    (@wpmudev-support9)

    Hello @beckseden

    I hope you’re doing well!

    This means that the tour server is not configured to have an efficient cache-control policy for headers. This can’t be fixed with the Hummingbird plugin. Please see more information here:
    https://www.tezify.com/how-to/serve-static-assets-with-an-efficient-cache-policy/

    Please edit your .htaccess file and add at the very top these lines

    
    # Cache Control and Enable CORS
    <FilesMatch "\.(js|css|jpg|gif|png|pdf|swf|svg|svgz|ico|ttf|ttc|otf|eot|woff|woff2|webp)$">
     <IfModule mod_headers.c>
        ExpiresActive On
        ExpiresDefault  "access plus 1 month"
        Header set Cache-Control "public, immutable, max-age=2628000, s-maxage=2628000"
        Header set Access-Control-Allow-Origin "*"
     </IfModule>
    </FilesMatch>

    If the above will not work, please contact your hosting provider about this issue.

    Kind regards,
    Nastia

    Thanks, I have tried it, but i think i’ll need to talk to my server as it doesn’t seem to have changed anything. Becky.

    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello Becky

    There could be server-side rules overriding this, let us know if that’s resolved via your hosting provider. 🙂

    Thank you,
    Dimitris

    Plugin Support Nastia – WPMU DEV Support

    (@wpmudev-support9)

    Hello @beckseden

    I hope you are doing well!

    We haven’t heard back from you for a while now so we’ve marked this ticket as resolved. If you do have any followup questions or require further assistance feel free to reopen it and let us know here.

    Kind regards,
    Nastia

    @wpmudev-support9 thank you. I am not using hummingbird any more, I’m afraid. I was unable to resolve the problem. Thanks anyway.

    Thanks for helping,

    I have put this in .htaccess and resolve the problem. Thanks anyway.
    ———————————
    <FilesMatch “\.(woff2|ttf)$”>
    ExpiresDefault A31536000
    Header set Access-Control-Allow-Origin “*”
    </FilesMatch>

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.