• Resolved olgamm

    (@olgamm)


    Hello, I have noticed that the png images have cache-header private. I was wondering why. Is it a problem to be public?
    Can I somehow remove the rule or override it?

    My plugin settings are:
    Conversion method: GD
    Image loading mode: via .htaccess / Nginx (recommended)

    My stack is:
    Litespeed webserver
    Litespeed cache plugin
    Cloudflare CDN

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

    (@mateuszgbiorczyk)

    Hi @olgamm,

    Thank you for your message.

    This is all related to Cloudflare. Below you will find our Cloudflare guide:
    https://mattplugins.com/docs/configure-cloudflare-caching

    If you encounter any other questions, please, feel free to reach out to me.

    Best,
    Mateusz

    Thread Starter olgamm

    (@olgamm)

    Thanks for the quick response, if I follow this guide then the cache header will be public?

    Also, what is the purpose of the rule in the htaccess? why do you need to set the cache header to private?

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @olgamm For Cloudflare free plans, our plugin will disable Cloudflare CDN Caching (but images in WebP and AVIF format will be displayed correctly). The Cache-Control header will be set to private. This is because in the Cloudflare free plans does not support the Accept header (read more). Available “Vary for Images” in your Cloudflare plan is necessary to use Cloudflare CDN Caching when loading WebP and AVIF files.

    Thread Starter olgamm

    (@olgamm)

    Hello again and thanks for your time and the info, we have free plan so the plugin disables Cloudflare for the converted images, I’m ok with that but why should they be private and not public?

    I have litespeed for caching that should do for the images. Is there something i can do to make the images have public cache header?

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @olgamm I answered this question above. Can you please tell me if you read my answers?

    For Cloudflare free plans, our plugin will disable Cloudflare CDN Caching (but images in WebP and AVIF format will be displayed correctly). The Cache-Control header will be set to private. This is because in the Cloudflare free plans does not support the Accept header (read more). Available “Vary for Images” in your Cloudflare plan is necessary to use Cloudflare CDN Caching when loading WebP and AVIF files.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cache Header Private’ is closed to new replies.