Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What exactly does the staticcontent tag in the web.config file apply to?

I've been reading about the staticContent element in the web.config file but I'm having a bit of trouble figuring out exactly what ASP.Net considers static content. I assume it's going to include images, js files, css and static html files but I can't seem to find any articles that explicitly state this. Does anyone have links to documentation that explains this in detail?

like image 463
Spencer Ruport Avatar asked Feb 23 '11 18:02

Spencer Ruport


People also ask

What is staticContent on web config?

As I understand it, the staticContent element in the web. config is where you can set how your site should cache it's static resource. So as to your question of what kind of content can be specified here, it would be any file that you could benefit from caching, i.e. images, video, etc.

Where is the Webconfig file?

The Web. Config file is used to configure Oracle Web Application functionality. This file is typically installed in the c:\Inetput\wwwroot\WebApp directory.

How do I see static content in IIS?

Go to Internet Information Services > Web Management Tools > IIS 6 Management Compatibility and enable IIS Metabase and IIS 6 configuration compatibility and IIS 6 Management Console. Go to Internet Information Services > World Wide Web Services > Common HTTP Features and enable the Static Content feature. Click OK.

What is static content oriented website?

Definition. Static content is any content that can be delivered to an end user without having to be generated, modified, or processed. The server delivers the same file to each user, making static content one of the simplest and most efficient content types to transmit over the Internet.


1 Answers

I think this may be the information you're missing - Static Content MimeMap

like image 102
Tony Avatar answered Sep 21 '22 02:09

Tony