473,398 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

How can I avoid cache?

Hi.

We have a web application that is used by several different companies. Each
company have access to a couple of hundred records which they are updating
daily. One of they companies have reported many problems since their IT
department set up a proxy server. When they click a button to save data or
insert a new record all they get is a "Page cannot be displayed"-page. If
they press back in IE and try again, they might or might not be able to
perform the desired action. In general they get the "Page cannot be
displayed" 3 or 4 times when pressing back and trying again.

I'm pretty sure that this has to do with the proxy caching web pages. Is
there something I can do so that this company's proxy server won't cache my
web pages?

Thanks,

Shawn


Nov 19 '05 #1
3 1243
Have you tried using :

Cache.SetNoStore();
and
Cache.SetCacheability(HttpCacheability.NoCache);

?

Juan T. Llibre
ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
==========================

"Shawn" <bo********@hotmail.com> wrote in message
news:uI**************@TK2MSFTNGP14.phx.gbl...
Hi.

We have a web application that is used by several different companies. Each
company have access to a couple of hundred records which they are updating
daily. One of they companies have reported many problems since their IT
department set up a proxy server. When they click a button to save data or
insert a new record all they get is a "Page cannot be displayed"-page. If
they press back in IE and try again, they might or might not be able to
perform the desired action. In general they get the "Page cannot be
displayed" 3 or 4 times when pressing back and trying again.

I'm pretty sure that this has to do with the proxy caching web pages. Is
there something I can do so that this company's proxy server won't cache my
web pages?

Thanks,

Shawn

Nov 19 '05 #2
I haven't tried anything yet. I've never worked with caching before. Where
would I put this code?

Shawn

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OO***************@TK2MSFTNGP10.phx.gbl...
Have you tried using :

Cache.SetNoStore();
and
Cache.SetCacheability(HttpCacheability.NoCache);

?

Juan T. Llibre
ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
==========================

"Shawn" <bo********@hotmail.com> wrote in message
news:uI**************@TK2MSFTNGP14.phx.gbl...
Hi.

We have a web application that is used by several different companies. Each company have access to a couple of hundred records which they are updating daily. One of they companies have reported many problems since their IT
department set up a proxy server. When they click a button to save data or insert a new record all they get is a "Page cannot be displayed"-page. If they press back in IE and try again, they might or might not be able to
perform the desired action. In general they get the "Page cannot be
displayed" 3 or 4 times when pressing back and trying again.

I'm pretty sure that this has to do with the proxy caching web pages. Is there something I can do so that this company's proxy server won't cache my web pages?

Thanks,

Shawn


Nov 19 '05 #3
You can put it in the Page_Load event.

VB.NET :
Sub Page_Load(sender As Object, e As EventArgs)
Response.Cache.SetNoStore()
Response.Cache.SetCacheability(HttpCacheability.No Cache)
End Sub

C#
private void Page_Load(object sender, EventArgs e) {
Response.Cache.SetNoStore();
Response.Cache.SetCacheability(HttpCacheability.No Cache);
}


Juan T. Llibre
ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
==========================

"Shawn" <bo********@hotmail.com> wrote in message
news:uH**************@TK2MSFTNGP09.phx.gbl...
I haven't tried anything yet. I've never worked with caching before. Where
would I put this code?

Shawn

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OO***************@TK2MSFTNGP10.phx.gbl...
Have you tried using :

Cache.SetNoStore();
and
Cache.SetCacheability(HttpCacheability.NoCache);

?

Juan T. Llibre
ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
==========================

"Shawn" <bo********@hotmail.com> wrote in message
news:uI**************@TK2MSFTNGP14.phx.gbl...
> Hi.
>
> We have a web application that is used by several different companies. Each > company have access to a couple of hundred records which they are updating > daily. One of they companies have reported many problems since their IT
> department set up a proxy server. When they click a button to save data or > insert a new record all they get is a "Page cannot be displayed"-page. If > they press back in IE and try again, they might or might not be able to
> perform the desired action. In general they get the "Page cannot be
> displayed" 3 or 4 times when pressing back and trying again.
>
>
>
> I'm pretty sure that this has to do with the proxy caching web pages. Is > there something I can do so that this company's proxy server won't cache my > web pages?
>
>
>
> Thanks,
>
> Shawn
>
>
>
>



Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bob Bedford | last post by:
When I click on the Back button of the browser I've to reload pages. How to avoid this ? The code worked fine before, no need to push the refresh button of the browser. BoB
2
by: Marwin | last post by:
Hi all, I have a database with 40GB of binary objects stored in image columns in two tables. Our database server is also used for another 15 databases. SQL Server caches the image-column,...
0
by: vanisathish | last post by:
Hi All, I am running IIS5.1. I am invoking an ASP page in ther server continously from the HTML Page, to update some contents of the html page. The ASP page seem to run from the cache...
17
by: Pushkar Pradhan | last post by:
I want to time my matrix multiply code (in MFLOPS). I want to run the code 100,000 times or some other big number. This can be done 2 ways (for and while loops): timer1 = time(NULL); for(n = 0;...
3
by: visu | last post by:
I am currently working on my personl website a completely DB driven web application. in that i ve updating the images thru my admin panel .. but i am getting the old images not the update one when...
0
by: Michael Nemtsev | last post by:
Hi, I need to stay on the current page even if user clicks "BACK" in browser. Opera is very stubborn in attemp of turning cached page off, and using current. Does anybody know the way how to say...
0
by: cbkprasad | last post by:
Hi, I have a critical problem regarding, avoiding the user to login to wibsite using the same credentials at the same time.The concept is once the user is logged in to application the that...
1
by: WT | last post by:
Hello, I have a dictionary made with objects which contain a control element, the control element is added to a Page when I want to edit the dictionary content. I put this dictionary in cache...
1
by: tanyali | last post by:
Hi, I am using asp.net and c# i have an iframe within a page PageA. the source file for the ifram is page PageB. I type in some text and press search from PageA, the result will be displayed...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.