Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • ivan 40 posts 181 karma points
    Sep 19, 2023 @ 02:50
    ivan
    0

    Cloudflare media files does not update cache-control

    Hi Everyone, Good day.

    Is there any other way to control cache-control of media files of azure media files on umbraco 8? It seems that It won't update the cache-control of the media file even though I have set it on web.config custom headers e.g. from my web config I have this settings

      <customHeaders>
        <add name="Cache-Control" value="public, max-age=31536000" />
                  <add name="Pragma" value="no-cache" />
                  <add name="Expires" value="0" />
    </customHeaders>
    

    Blob storage .config cache:

       <cache name="AzureBlobCache"
               type="Umbraco.Cloud.StorageProviders.AzureBlob.ImageProcessor.ImageCache, Umbraco.Cloud.StorageProviders.AzureBlob"
               maxDays="365"
               browserMaxDays="7"
               folderDepth="0"
               trimCache="false"
               xdt:Locator="Match(name)"
               xdt:Transform="InsertIfMissing"/>
    </caches>
    

    Doesn't seem to update cache-control on my website.

    enter image description here

Please Sign in or register to post replies

Write your reply to:

Draft