• Hi there,

    When I change the path for the files (images), I get this when analyzing:

    Serve static assets with an efficient cache policy
    A long cache lifetime can speed up repeat visits to your page.

    Learn how to improve this
    URL CACHE TTL TRANSFER SIZE
    NONE

    So, when I disable the plugin, it shows that the images are cached again. It seems like rewriting the URL does have effect on performance after all. Can we get this fixed? I need my images to be cached, even after rewrite.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Maya

    (@tdgu)

    Hi,
    Within your .htaccess file, you should find some rewrites that send cache headers for your images ( don’t know the format, they can be different depending on the plugin you use for that cache ). Can you try to move those above the BEGIN WP Hide & Security Enhancer ?

    Thanks

    Thread Starter syaho

    (@syaho)

    I am using SG-Optimizer… I don’t see that cache header being set in .htaccess. Can you check what it should be, because I can’t find it…

    Plugin Contributor Maya

    (@tdgu)

    Hi,
    I think the headers are being set somewhere else on the server configuration, so you may not reach that area. You can ask at server support about that.

    Or you can try a different approach, set your own rules through .htaccess file, add the following lines on top of the file:

    <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresByType image/png "access 2 weeks"
        ExpiresByType image/gif "access 2 weeks"
        ExpiresByType image/jpeg "access 1 hour"
    </IfModule>

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Images served not being cached’ is closed to new replies.