Azure Blob Storage for Two Umbraco Sites Using Different Containers
Hello all,
I have two Umbraco 8.17.x instances, both of which are set up as Azure App Services. They are both configured to use the same Azure Blob Storage, but are pointed to different containers. The first one we set up is using the names "media" and "cache" for its storage containers. The second site uses "media2" and "cache2".
The second site and first site are behaving differently.
First Site: When I open a page on this site and view the Developer's Tools (Network tab), every request for a resource file from the Umbraco media folder gets a 302 redirect response to the blob storage container, followed by a 200 response when the resource is fetched from the blob storage container.
Second Site: When I open a page on this site and view the Developer's Tools (Network tab), there is a mix of Umbraco media site requests that get 302 or 200 responses and requests to the blob storage container that get a 200 response. This behavior doesn't seem correct. I believe every request to to the Umbraco media folder should be met with a 302 response and the resource should be subsequently fetched from the blob storage container.
I've confirmed that when I upload an image in the Umbraco back-end of either site, it gets uploaded to the appropriate storage container in the blob storage.
The configuration for the first site is the same but with "media" instead of "media2" and "cache" instead of "cache2". Also, the "UseDefaultRoute:media" setting in Web.config is "false".
Do I have my settings correct for using a non-standard name for the storage container?
Has anyone else seen behavior in which some files are served from the Umbraco media folder and others from the blob storage container?
TLDR: processing.config had interceptAllRequests set to "false". The only media that were being served from blob storage were those with query parameters.
Azure Blob Storage for Two Umbraco Sites Using Different Containers
Hello all,
I have two Umbraco 8.17.x instances, both of which are set up as Azure App Services. They are both configured to use the same Azure Blob Storage, but are pointed to different containers. The first one we set up is using the names "media" and "cache" for its storage containers. The second site uses "media2" and "cache2".
The second site and first site are behaving differently.
First Site: When I open a page on this site and view the Developer's Tools (Network tab), every request for a resource file from the Umbraco media folder gets a 302 redirect response to the blob storage container, followed by a 200 response when the resource is fetched from the blob storage container.
Second Site: When I open a page on this site and view the Developer's Tools (Network tab), there is a mix of Umbraco media site requests that get 302 or 200 responses and requests to the blob storage container that get a 200 response. This behavior doesn't seem correct. I believe every request to to the Umbraco media folder should be met with a 302 response and the resource should be subsequently fetched from the blob storage container.
I've confirmed that when I upload an image in the Umbraco back-end of either site, it gets uploaded to the appropriate storage container in the blob storage.
My configuration for the second site is below.
Web.config:
cache.config:
security.config:
The configuration for the first site is the same but with "media" instead of "media2" and "cache" instead of "cache2". Also, the "UseDefaultRoute:media" setting in Web.config is "false".
Do I have my settings correct for using a non-standard name for the storage container?
Has anyone else seen behavior in which some files are served from the Umbraco media folder and others from the blob storage container?
Thanks for any help.
Angus
Found the answer here.
TLDR: processing.config had interceptAllRequests set to "false". The only media that were being served from blob storage were those with query parameters.
is working on a reply...