• Resolved shadiadi

    (@shadiadi)


    Sorry probaby a simple solution, but pagespeed insights is saying only my webp images are not caching and have a cache TTL of 10 seconds.

    All the images I did not optimize are caching fine.

      ExpiresByType image/gif                 "access plus 4 month"
      ExpiresByType image/png                 "access plus 4 month"
      ExpiresByType image/jpg                 "access plus 4 month"
      ExpiresByType image/jpeg                "access plus 4 month"
      ExpiresByType image/webp                "access plus 4 month"

    On pages where I have not optimized for WEBP yet all my gifs, png jpg files are satisfactorily cached only on the one test page I have made it is saying

    Serve static assets with an effective cache policy and listed are the jpg
    and png’s that are being served in WEBP format with a cache TTL of 10 seconds.

    Any ideas on how to fix this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    Check out the use of the cache-control header mentioned here: https://www.ads-software.com/support/topic/serve-static-assets-with-an-efficient-cache-policy/

    You might also be able to ask your webhost to resolve that server-wide, as it’s something they should be doing anyway.

    Thread Starter shadiadi

    (@shadiadi)

    Thank you for your reply!
    Well, that did not work, and I do have total control over my server.
    Apache header expires and mime modules are installed.
    I can not figure out why it is caching normal images but all the ones created by EWWWW are showing a 10 second TTL. It is the only error I have left to fix.

    • This reply was modified 5 years ago by shadiadi.
    Plugin Author nosilver4u

    (@nosilver4u)

    Make sure you have image/webp actually defined in your Apache configs then, otherwise Apache can’t do an expires by type.

    Thread Starter shadiadi

    (@shadiadi)

    I have the code supplied by EWWWW which includes

    AddType image/webp .webp

    or do you mean physically editing the Apache configuration files in Linux?

    • This reply was modified 5 years ago by shadiadi.
    Plugin Author nosilver4u

    (@nosilver4u)

    It’s been a long time since I’ve mucked with Apache much, but I do wonder if the type needs to be defined before you set the expire times, so if they are both in your .htaccess, make sure the AddType comes before ExpiresByType.

    Otherwise, I’m out of ideas, perhaps a post to https://serverfault.com/ would give you some ideas (if you can’t find the answer on there already).

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Webp images not caching all my other images are’ is closed to new replies.