1

I have this in my web-form,

<%@ OutputCache VaryByParam="none" Duration="30"   %>

In the page load I have,

    protected void Page_Load(object sender, EventArgs e)
    {
        Thread.Sleep(5000);

But still with every request it takes more than 5 seconds, means caching is not working? I

Imran Qadir Baksh - Baloch
  • 32,612
  • 68
  • 179
  • 322

1 Answers1

1

check this thread: Disable OutputCache on Development System

also if your system is under memory pressure, it may not cache the page or may discard it sooner than anticipated. test on a clean machine.

Community
  • 1
  • 1
rvh
  • 135
  • 1
  • 7