outputcache


OutputCache not caching for the whole duration time


I made a simple testcase.
default.asp:
<%=now%>
web.config:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<location path="default.asp">
<system.webServer>
<caching>
<profiles>
<add extension=".asp" policy="CacheForTimePeriod" kernelCachePolicy="DontCache" duration="01:00:00" varyByQueryString="*" />
</profiles>
</caching>
</system.webServer>
</location>
If i request default.asp 2 times the page's get cached en the datetime value says the same for a period of time but not for the whole hour.
To test this open default.asp request the page until it is cached then wait for 5 minutes and refresh the page.
I am using Windows 7 + IIS7.5
Can you clarify what the lifetime of the application is in IIS. Could IIS be culling the application due to non use?
One way to test this out would be to keep refreshing the page every 20 seconds. If the cached page keeps the original time for longer than the 5 minutes you mentioned then this would point to the fact that the application is being culled. When you then request this app again it generates the cached version afresh.
I did a failed request tracing and found the following.
If the page doesn't get frequently hit the cache invalidates even thought the duration isn't reached:
http://img819.imageshack.us/img819/7963/45303467.png

Related Links

.NET Ignite cache expiry policy not working
OutputCache not caching for the whole duration time

Categories

HOME
algorithm
checkstyle
linkedin
nvd3.js
google-spreadsheet
character-encoding
yahoo-finance
switch-statement
scripting
pkcs#11
commonjs
vimdiff
java.util.logging
mxgraph
renjin
3nf
cumulocity
gruntfile
coin3d
symfony-2.8
mvc-mini-profiler
sse
charles
database-connection
selinux
href
mount
jackson-modules
corpus
oculus
userdefaults
zend-debugger
weather
deltaspike
dumpbin
playstation-portable
spring-security4
installshield-le
openwhisk
hunspell
latitude-longitude
wurfl
jpad
tex
railstutorial.org
numberpicker
naming
oracle-service-bus
avcapturedevice
oim
strftime
facebook-social-plugins
plan-9
mesosphere
textsum
libgphoto2
gitlist
bluez
static-cast
compiler-design
edit
branch-prediction
vcloud-director-rest-api
visual-studio-2008-sp1
angular2-testing
actor-platform
ziparchive
winusb
myspace
jboss-tools
scaffolding
aurora
hadoop-partitioning
phpwebsocket
contentcontrol
jaunt-api
jnlua
linklabel
xenomai
computer-architecture
pypiserver
text-search
atoi
zend-currency
actionfilterattribute
gamekit
create.js
dot42
drupal-nodes
accesscontrolexception
rfc5322
gtm-oauth2
kendo-dataviz
server-administration
bjyauthorize
idn
midlet
vfs
thttpd
lambdaj
jdb
workflow-services
xcelsius
svk
diagrams
hbm2java
dsl-tools

Resources

Encrypt Message