locked
Setting Azure CDN container TTL RRS feed

  • Question

  • I understand that we can set the blob TTL by using cache control header but what about containers?.  Actually I have 2 part question on this.

    1. Is there a way to set the cache control at the container level programatically or otherwise?. The cloudberry explorer seems to have a setting but not sure if it is working.
    2. I already have this container set up and some files are alreay uploaded.  But we have thousands of more files and folders to upload to CDN. Assuming that I can set the container level cache header and if I set that to say 4 hours now, then when I upload rest of the files without any specific cache headers, would all these new blobs have TTL set for 4 hours (as set by the container) or 72 hours (defalut blob TTL)?
    3. Also, what happens to the existing blob TTL under this container?
    4. Do blob cache header setting overrides container cache header setting in general?

    The problem is, if we didn't have a clear requirement about the TTL and we decide to come back and set the TTLs, how do we do it? Is there a way to do 'batch update' of some kind?

    Monday, January 31, 2011 11:27 PM

Answers

  • There are no cache settings at the container level and thus no inheritance of cache settings.

    There are no batch operations on blob storage, so you'd have to issue one update per blob.  (That said, you can certainly do that in parallel and probably go through at least a hundred or so per second.)

    • Marked as answer by Mog Liang Tuesday, February 8, 2011 8:29 AM
    Tuesday, February 1, 2011 2:44 AM

All replies

  • There are no cache settings at the container level and thus no inheritance of cache settings.

    There are no batch operations on blob storage, so you'd have to issue one update per blob.  (That said, you can certainly do that in parallel and probably go through at least a hundred or so per second.)

    • Marked as answer by Mog Liang Tuesday, February 8, 2011 8:29 AM
    Tuesday, February 1, 2011 2:44 AM
  • I am now curious about how others handle this. It's a minor annoyance when you are dealing with small number of files but something else when you are dealing with thousands of files.

    Is this something on Microsoft's roadmap?

    Tuesday, February 1, 2011 6:32 PM
  • I don't know what others are doing... I don't think there's anything on our roadmap to set cache settings at the container level.
    Saturday, February 5, 2011 12:06 AM