473,396 Members | 2,092 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,396 software developers and data experts.

anyway to get past browser cache and find out the truth of what is going on?

I've got a site on a hosted virtual server. I'd like to know the truth
of what is going on, but I can't get past my browsers cache. There is
some kind of error in my code that occurs on a given line. When I
comment out that one line, everything else seems to work. When I
uncomment that one line, the browser simply shows what was last on
screen the last time the code was working. That is, if I write

echo "hello";

while the line is commented out, then I change the line to

echo "goodbye";

and I uncomment the line and hit the refresh button on my browser, the
word hello will remain on screen. Neither FireFox nor IE will show me
the truth of what they are seeing, either that be nothing or an error
message.

How to get around that?

Jul 21 '05 #1
6 1616
Your question is confusing, so I'm not sure if this is what you're
looking for, but to stop the browser from caching the page at all, add
this meta tag:
<meta http-equiv="Pragma" content="no-cache" />

Jul 21 '05 #2
lk******@geocities.com wrote:
[caching]
How to get around that?


If you have the time: read RFC 2616. It will tell you all about
controlling caching mechanisms :)

Jul 21 '05 #3
>echo "goodbye";

and I uncomment the line and hit the refresh button on my browser, the
word hello will remain on screen. Neither FireFox nor IE will show me
the truth of what they are seeing, either that be nothing or an error
message.

How to get around that?


Telnet to port 80 and manually type a HTTP request?

Gordon L. Burditt
Jul 21 '05 #4
DJ Craig <sp**@djtricities.com> wrote:
this meta tag:
<meta http-equiv="Pragma" content="no-cache" />


This is a serverside group, we have access to the real stuff using
header().

Jul 21 '05 #5
On 21 Jul 2005 10:32:30 -0700, lk******@geocities.com wrote:
I can't get past my browsers cache.


Use a browser without a cache.

In about:config in Firefox there are several cache options ending in "enable"
that would likely disable cacheing entirely if you turned them all off.

Or use one of the many command-line HTTP clients that either don't have cache
support or can have it disabled; wget, curl, Perl LWP etc.

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 21 '05 #6
On Thu, 21 Jul 2005 19:35:18 +0100, Andy Hassall <an**@andyh.co.uk> wrote:
On 21 Jul 2005 10:32:30 -0700, lk******@geocities.com wrote:
I can't get past my browsers cache.


Add to the top of your file :

<?php
header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" );
header( "Cache-Control: no-store, no-cache, must-revalidate" );
header( "Cache-Control: post-check=0, pre-check=0", false );
header( "Pragma: no-cache" );
?>

Jul 21 '05 #7

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

Similar topics

21
by: Tony Marston | last post by:
If the use of the browser's BACK button is interfering with the operation of your web application then take a look at this article entitle "Back Button Blues" ...
4
by: Jofio | last post by:
To tell you the truth, basically I am nobody insofar as scripting PHP is concerned. However, I fell in love with the language after reading great things about what the language can do, and so I...
2
by: Ben | last post by:
Hi all, I have written a web server that listens for requests: class MyHandler(BaseHTTPRequestHandler): def do_GET(self): if (self.path)=='/': data=makeList() else:
2
by: Romy Sreedharan | last post by:
Hello, I am wondering whether there is a mechanism to clear the Hard Disk Cache using C#? This is for O.S Windows XP regards romy
5
by: David Baker | last post by:
Hi all I am very new to ASP.Net. I am trying to create a sniffer for our program. We want our users to click our sniffer and hopefully the sniffer will check their computer against our...
2
by: junlia | last post by:
Hi All, I am working on a project that acts as a bridge. It does some checking with post xml data, and then redirects the request to an appropriate page. However, we find that depends on the...
21
by: nsimeonov | last post by:
Hello, Does anyone have any idea how Gmail does this? I have a web application and people complain sometimes about some problems and most of the time it turns out it's the browser's cache...
6
by: ernesto.tejeda | last post by:
Hello, I have a couple of questions regarding the loading of .js files for the browser and would like anyone to point me wher to find the answer (or if you know the answer and tell me will do just...
103
by: Tom | last post by:
How do we get out of the browser infinite loop quicksand when we navigate to web pages designed to lock us in and force us to hit the "pay me" button (whatever they want to force you to do)? ...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.