Best Practices for Configuring a Static File Server Using ASP.NET/ASP.NET MVC

I would like to set up a subdomain (similar to stackoverflow http://sstatic.net/ ) to serve static content for my existing web applications, I have never done this before and wondered if anyone has any advice - what technology to use (I use the Microsoft stack), how should I structure a static site, what are security and caching considerations, etc.

ANY advice will be appreciated, thanks in advance

+4
source share
2 answers

Do not indicate the obvious, but if it is really static, why do you need ASP.NET? This question contains some recommendations for optimizing IIS as a static file server. If people need to authenticate in order to view static content, this will obviously complicate it. sstatic.net does not use authentication.

+2
source

I suggest you check out Amazon S3 and Cloudfront . Both of them have low cost and high performance. Their focus is on serving content.

I am a happy customer of S3.

Added: you can easily configure your services so that they appear as a subdomain of your site. For example, assets.yourdomain.com

+1
source

Source: https://habr.com/ru/post/1300786/


All Articles