Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Leverage Browsing Caching is getting a D(60) rank in PageSpeed Scores

  • #3055
    Avatar photo[anonymous]

    Leverage browser caching for the following cacheable resources:

    assets/css/style.css (expiration not specified)
    assets/js/scripts.min.js (expiration not specified)
    assets/svg/svg-map.svg (expiration not specified)
    media/posts/5/responsive/postimage1.jpg (expiration not specified)
    media/posts/5/responsive/postimage2.jpg (expiration not specified)
    media/posts/5/responsive/postimage3.jpg (expiration not specified)
    media/website/authoravatar.jpg (expiration not specified)
    media/website/favicon.png (expiration not specified)

    It shows browser caching is not leveraged due to the expiration date not specified for the above files.

    Also,
    Compressing assets/svg/svg-map.svg could save 4.1KiB (59% reduction).

    All others are more or less 99% or 100%.

    #3056
    Avatar photoBob

    https://gtmetrix.com/leverage-browser-caching.html

    ## EXPIRES HEADER 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 image/svg "access 1 year"
    ExpiresByType text/css "access 1 month"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType application/javascript "access 1 month"
    ExpiresByType application/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 HEADER CACHING ##
    #3132
    Avatar photo[anonymous]

    @NitaaiKumar it will help to know on what and/or where are you hosting your website such as netlify or something else