Add Cache-Control and Expires headers to Azure Storage Blobs

前端 未结 8 1716
刺人心
刺人心 2020-12-04 21:48

I\'m using Azure Storage to serve up static file blobs but I\'d like to add a Cache-Control and Expires header to the files/blobs when served up to reduce bandwidth costs.

8条回答
  •  执笔经年
    2020-12-04 22:25

    Sometimes, the simplest answer is the best one. If you just want to manage a small amount of blobs, you can use Azure Management to change the headers/metadata for your blobs.

    1. Click on Storage, then click on the storage account name.
    2. Click the Containers tab, then click on a container.
    3. Click on a blob, then click on Edit at the bottom of the screen.

    In that edit window, you can customize the Cache Control, Content Encoding, Content Language, and more.

    Note: you cannot currently edit this data from the Azure Portal

提交回复
热议问题