asp.net - My system.webServer > staticContent > clientCache element obstructs serving CSS, JavaScript, and Images -


i have system.webserver section. when add clientcache line, web server stops serving javascript, css, , images. when remove clientcache line, again starts serving them. wrong clientcache element?

this problem occurs both in visual studio development server , when push website azure.

<system.webserver>     <staticcontent>       <clientcache cachecontrolmode="usemaxage" cachecontrolmaxage="86400"/>     </staticcontent>     <!--handlers removed clarity--> </system.webserver> 

in asp.net, clientcache > cachecontrolmaxage property timespan (though http specification makes max-age header seconds.)

so, wrong:

<clientcache cachecontrolmode="usemaxage" cachecontrolmaxage="86400"/> 

and right:

<clientcache cachecontrolmode="usemaxage" cachecontrolmaxage="1.00:00:00"/> 

where iso on one?


Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -