[Mono-aspnet-list] Using the staticContent configuration option

Brad Robinson brad.robinson at cognethos.com
Wed Nov 24 19:09:44 EST 2010


Hi,

I've got an ASP.NET site running under Ubuntu 10.10, Lighttpd and Mono 2.6
with mono-fastcgi-server2.  I'd like for certain static content files to be
served with a long max-age cache directive, but can't seem to get it
working.

I have this in my web.config which works under IIS, but not under mono:


	<location path="Content">
		<system.webServer>
			<staticContent>
				<clientCache cacheControlMode="UseMaxAge"
cacheControlMaxAge="365.00:00:00" />
			</staticContent>
		</system.webServer>
	</location>

I've also tried putting the static content directive in the global
system.webServer node, but it doesn't work either, it always serves with
Cache-Control: private

NB: In setting up lighttpd, I've set all requests to go to
mono-fastcgi-server2, so these static files aren't being served directly by
lighty.

So, is this staticContent configuration supported?  If not, any workarounds? 
If so, what am I missing? 

Related, is there documentation somewhere about which web.config options are
and are not supported by mono?

Any help appreciated.
-- 
View this message in context: http://mono.1490590.n4.nabble.com/Using-the-staticContent-configuration-option-tp3058282p3058282.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.


More information about the Mono-aspnet-list mailing list