• Resolved comunadv

    (@comunadv)


    Hi! I’m trying to get 100 score en PageSpeed Insights, but it keep saying that some files are not being cached.

    For example, the file Slide-Home-1.png give me this request header:
    Cache-Control: no-cache

    The same happens with the last 5 .png files I’ve uploaded, with all de .svg files, and with some .js files with URL parameters like “smush-lazy-load.min.js?ver=3.3.2”

    What am I doing wrong?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @comunadv,

    I hope you’re doing well!

    This is related to Browser Caching. Please go to the Hummingbird > Caching > Browser Caching and set the browser caching to no less than a month to one year.

    Please see attached screenshot:
    https://take.ms/psg4t

    Let us know how it went!

    Cheers,
    Nastia

    Thread Starter comunadv

    (@comunadv)

    Hi! Thanks for your reply.

    I’ve made the changes you told me, but it still not caching those files.

    And all the image files still says 24 days, but the js and css files says 60 days.

    You can see here: https://monosnap.com/file/QICAv2Y5JDbi911wBjnqeuyGaGhPFH

    But all those 14 files are still giving me the request header Cache-Control: no-cache

    I don’t know why in the Browser Caching settings it says 2 months for all the files: https://monosnap.com/file/rHMOYAIKY3Bk6BBcSIRbuHuzjeJDba

    Thanks!

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @comunadv

    I hope you’re doing well!

    Enabling CDN on your site will improve the score for these static assets. I see the Browser cache of two months has been applied to these files. Looks like the issue is that the Headers do not have 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>

    This should help to improve the score.

    Let us know how it went!

    Kind regards,
    Nastia

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @comunadv

    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

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Some files aren’t being cached’ is closed to new replies.