How to Manage Expiration of Blob Content in the Azure Content Delivery Network (CDN): Difference between revisions
Jump to navigation
Jump to search
(Created page with 'Category:English pages Category:Vista tips and tricks Category:Internettet Category:Internet <google>ENGELSK</google>') |
No edit summary |
||
Line 3: | Line 3: | ||
[[Category:Internettet]] | [[Category:Internettet]] | ||
[[Category:Internet]] | [[Category:Internet]] | ||
CDN caches items where a cache value is not set for the default TTL of 7 days.<br> | |||
CDN is best for static content with a high cache hit ratio.<br> | |||
CDN would still cache the content, unless the cache-expiry passes, or the file name changes.<br> | |||
Using CDN for dynamic content is not recommended, because it causes the user to wait for a double hop from storage to cdn and from cdn to user.<br> | |||
* [http://msdn.microsoft.com/en-us/library/azure/gg680306.aspx How to Manage Expiration of Blob Content in the Azure Content Delivery Network (CDN)] | |||
You also pay twice the bandwidth on the initial load. | |||
You can check the TTL using wget.exe of Fiddler:<br> | |||
''wget.exe --server-response [URL]'' | |||
If the response says: | |||
HTTP request sent, awaiting response... | |||
HTTP/1.1 200 OK | |||
... | |||
Cache-Control: 3600 | |||
... | |||
the item will be cashed for 36000 seconds = 1 hour. | |||
x-ms-blob-cache-control: public, max-age=36000 | |||
<google>ENGELSK</google> | <google>ENGELSK</google> |
Revision as of 12:53, 16 May 2014
CDN caches items where a cache value is not set for the default TTL of 7 days.
CDN is best for static content with a high cache hit ratio.
CDN would still cache the content, unless the cache-expiry passes, or the file name changes.
Using CDN for dynamic content is not recommended, because it causes the user to wait for a double hop from storage to cdn and from cdn to user.
You also pay twice the bandwidth on the initial load.
You can check the TTL using wget.exe of Fiddler:
wget.exe --server-response [URL]
If the response says:
HTTP request sent, awaiting response... HTTP/1.1 200 OK ... Cache-Control: 3600 ...
the item will be cashed for 36000 seconds = 1 hour.
x-ms-blob-cache-control: public, max-age=36000
<google>ENGELSK</google>