windows - IIS output caching setting using PowerShell -


i have been trying find way configure iis 'outputcaching' setting. have been looking around , having had works. trying set output caching extension .pdf , setting "until changed".

i've tried code:

set-webconfigurationproperty -pspath 'machine/webroot/apphost/default web  site' -filter "system.webserver/caching/profiles/add[@extension='.pdf']" - name "kernelcachepolicy" -value "cacheuntilchange" 

but gave me following error:

warning: target configuration object 'system.webserver/caching/profiles/add[@extension='.pdf'] not found @ path 'machine/webroot/apphost/default web site'.

try using add-webconfigurationproperty

add-webconfigurationproperty add property isn't there.

set-webconfigurationproperty changes value of property exists


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -