brettshadow
New Member
I'm trying to use static .html pages for a website that encounters large traffic spikes. The website is an \[code\]MVC3\[/code\] app. The static .html pages are in a directory structure something like the following:\[code\]approot|---content index.html |---staticpages page1.html page2.html page3.html\[/code\]I've set the defaultDocument in \[code\]web.config\[/code\] to \[code\]"content/index.html"\[/code\]. If I simply include the .html files in the project and deploy the app, it runs fine.What we want to do is put all of the html files as blobs in a storage container. A background task (run in WebRole) checks for any updated files at a regular interval. The background task also checks to see if the .html files exist or need updating when the servers starts up. Ideally, we'd rather not have to include the .html files in the project and just grab them from storage when the server starts.The background task pulls down the files and puts them in the proper directories just fine. However, when trying to access the website at say www.mysite.com, IIS returns a \[code\]403\[/code\] error. If we try to access any of the other .html pages we get a \[code\]404\[/code\] error. This does not occur when testing the \[code\]MVC\[/code\] app in a local development environment. When I turn on directory browsing in \[code\]IIS\[/code\], none of the files or the directories appear when getting a directory for the site. Once again using just the domain like www.mysite.com. If I do include the .html files in the \[code\]webrole\[/code\] project and then try to update one in storage, the \[code\]blob\[/code\] is pulled from storage, but \[code\]IIS\[/code\] serves up the old page. I've deleted my browser cache to be sure that wasn't an issue. The new file is being updated correctly on the server. I've copied it to my local machine and looked inside it and it is indeed the updated version.So, from what I can deduce so far it seems like \[code\]Azure caches\[/code\] the entire website as it is deployed and doesn't seem to allow for content change. Is there a way to force \[code\]Azure\[/code\] to recognize the changes or are we going to be forced to redeploy whenever there's a change to a static .html page?