IIS7 Cache-Control
Date : March 29 2020, 07:55 AM
hope this fix your issue If you want to set the Cache-Control header, there's nothing in the IIS7 UI to do this, sadly. You can however drop this web.config in the root of the folder or site where you want to set it: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
</staticContent>
</system.webServer>
</configuration>
\Windows\system32\inetsrv\appcmd.exe
set config "Default Web Site/folder"
-section:system.webServer/staticContent
-clientCache.cacheControlMode:UseMaxAge
\Windows\system32\inetsrv\appcmd.exe
set config "Default Web Site/folder"
-section:system.webServer/staticContent
-clientCache.cacheControlMaxAge:"7.00:00:00"
|
How do I cache WCF REST web service in IIS7?
Tag : wcf , By : Luciano Campos
Date : March 29 2020, 07:55 AM
To fix this issue After much digging using the FREB logs in IIS, my service is in fact cache-worthy. You can listen to the Cache events in IIS and it will show you exactly what is and is not caching. I found this more helpful that using PerfMon. I used the following link to set it up. Output caching will work and will in fact serve your content right out of memory after things get warmed up.
|
Manually refresh output cache in IIS7
Date : March 29 2020, 07:55 AM
this will help Use cache dependency on some file, the cache will expire when the file changed.
|
IIS7: Cache Setting Not Working... why?
Date : March 29 2020, 07:55 AM
like below fixes the issue My IIS7 web.config is set to the following with a folder of static assets (not within an ASP.NET app or anything): , You need to configure IIS to treat XAP as static content. Try this: <configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".xaml" mimeType="application/xaml+xml" />
<mimeMap fileExtension=".xap" mimeType="application/x-silverlight-app" />
<mimeMap fileExtension=".xbap" mimeType="application/x-ms-xbap" />
</staticContent>
</system.webServer>
</configuration>
|
Does IIS7 cache video(mp4/wmv) files?
Date : March 29 2020, 07:55 AM
This might help you By default, IIS 7.5 will not cache your video files. To use IIS to improve your performance through caching you can use a feature of IIS called Output Caching, you have a good tutorial here, on how to set it up!
|