Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to stop caching in Proxy Server

Reply
Thread Tools

How to stop caching in Proxy Server

 
 
anilakhwaja anilakhwaja is offline
Junior Member
Join Date: Jul 2007
Posts: 2
 
      07-16-2007
Can u plz help me in the scenerio which is some what the same .. .as its addressing here

sccenario:

we have a proxy server which is assigned by a fixed ip and user access it through proxy ...

we have deployed our application over there, which is built in ASP.NET 2.0 and we have also used seperate javascript files (*.js) and proxy server as usual caches the page and javascript files

when ever we have some changes we deploy our application again at the proxy server

but when we run the application it uses the same cached javascript files and dont use the new one which we have deployed

We are using Squid 2.5 as our proxy server

We have done this in our Page.

protected override void OnLoad(EventArgs e)

{

Response.Cache.SetNoStore();

Response.Cache.SetCacheability(HttpCacheability.No Cache);

Response.Cache.SetExpires(DateTime.Now);

base.OnLoad(e);

}

But this solves the problem only on LAN.

For fixed IP, caching problem persists.

can you help me in this regard that what should i do ???

wat should i do inorder to stop proxy server to cache javascript files
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How To Stop Caching By ISP Proxy Servers Meron Lavie ASP .Net 4 07-16-2007 07:03 AM
Proxy server and caching John ASP .Net 0 10-24-2006 08:43 PM
Fragment Caching inside page caching? Troy Simpson ASP .Net 0 01-19-2004 11:57 AM
trouble with caching or caching the trouble Hypo ASP .Net 6 08-01-2003 07:11 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57