caching in aspnet

G

Guest

I'm trying to do server caching for some pages of a
website I developed.

All the pages include the same user control to which they pass a parameter.
In this user control I have the following 4 lines.

Response.Cache.SetValidUntilExpires(true);
Response.Cache.SetCacheability(HttpCacheability.Server);
Response.Cache.SetExpires(DateTime.Now.AddDays(7));
Response.Cache.VaryByParams["cat"] = true;

When I go to the website through localhost on the server
the caching seems to work, however when i try to access
the pages from anywhere else the load time is the same
(slow) every time i refresh the page.

any help would be appreciated

thanks

-Evgeny
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,815
Latest member
treekmostly22

Latest Threads

Top