• My website: https://www.devreveal.com/
    When I tested on https://tools.pingdom.com/
    I got these errors:
    1. Serve the following static resources from a domain that doesn’t set cookies.
    2. Specify an expiration at least one week in the future for the following resources.
    3. The following publicly cacheable, compressible resources should have a “Vary: Accept-Encoding” header”.


    I edited my .htaccess file like recommendation but it does not work:

    <IfModule mod_headers.c>
      <FilesMatch "\.(js|css|xml|gz)$">
        Header append Vary: Accept-Encoding
      </FilesMatch>
    </IfModule>
    
    ## 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 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 CACHING ##

    Please help me resolve them. Thank you very much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Ran your site through that. Your browser caching is fine. You can only control what your webserver does with the .htaccess. You can’t control what Google and other 3rd party servers do.

    The Cookies thing.. not much you can do about that directly. Your blog needs cookies to work so everything on that domain is going to get cookie headers sent.

    That Vary Header doesn’t seem to be working as your webserver is still not sending it even with that .htaccess configuration. Might want to check with your Webhost about that.

    Thread Starter riotstarone

    (@riotstarone)

    Thank you so much for your support @mark.
    I will contact to provider.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help me resolve some errors on Pingdom’ is closed to new replies.