PC Review


Reply
Thread Tools Rate Thread

Different OutputCache Client and Server

 
 
ELMICHA
Guest
Posts: n/a
 
      13th Mar 2008
Helo,
I have include @OutputCache on my ASPX with location="Any"

¿Can I ser different cache time from client than from server?

I would like to cache the home page of my site 3 minutes on the Server
(so that it don't hit de DB)
And Also i would like to cache that page un the client, 4 hours.

I've tried puting the directive,
<%@ OutputCache Duration="120" VaryByParam="IDWeb" Location="Server"
%>
AND (Page_Load)
Response.ExpiresAbsolute = System.DateTime.Now.AddHours(4)

But the header get
Expires = -1

Any comment, will be thank
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WCF -Inproc: Client and Server on main thread -> Client call hangs... José Joye Microsoft Dot NET 9 20th Dec 2007 07:18 AM
WCF -Inproc: Client and Server on main thread -> Client call hangs... José Joye Microsoft C# .NET 9 20th Dec 2007 07:18 AM
problem with client computer in the client/server network windows server 2003 gogi100 Windows XP Networking 1 1st Sep 2007 05:23 PM
Socket Server to Socket Client..Client function not working when called from Server... trint Microsoft C# .NET 2 13th Apr 2005 09:43 PM
Explain to a client the workings of Terminal Server & Client Connections (Remote Desktop) Barry McConomy Microsoft Windows 2000 Terminal Server Clients 4 13th Sep 2004 12:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:02 PM.