views:

19

answers:

2

How do you cache an aspx page call on the client?

The aspx page returns an asset and looks like this:

http://srv-edu-build/edumatic3/dev/RetrieveBlob.aspx?assetId=31809&assetFileId=9823

We have tried with Output Cache, with caching in the code behind, but the only result we get is server side caching (by IIS7).

In the header of the response cache-control is set to public and expiration time is set (to 14800 as set in output cache profile).

A: 

Maybe this previous question will help you click here

WVDominick
That answer works well for static content (images, javascript, css, etc) but doesn't change how dynamically generated content is cached)
Keith
A: 

I think I've found why this happens it's a bug in IE.

IE can't cache if the Vary:* HTTP response header is used, but IIS returns it by default because it's in the HTTP 1.1 spec.

Try adding the following to your web.config:

<system.web> 
    <caching>
        <outputCache omitVaryStar="true" />
    </caching>
</system.web> 
Keith