473,473 Members | 3,363 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How can I disable any type of cache?

I mean any kind, browser, server..., ANY.

I have a script that erases and adds thumbs and the cache is a nightmare.

There is an XP folder tool options to enable thumbs cache.

I want to disable it (and any other type) regardless of this option status.

Thanks.
Jul 17 '05 #1
3 2169

"John Pastrovick" pa*********@hotmail.com
news:a2**************************@posting.google.c om...
I mean any kind, browser, server..., ANY.

I have a script that erases and adds thumbs and the cache is a nightmare.

There is an XP folder tool options to enable thumbs cache.

I want to disable it (and any other type) regardless of this option status.
Thanks.

add this headers
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always
modified
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0

other way to add random variable to link like this
<?
echo "<a href=name.php?id=".time().">NAME</a>";
?>


Jul 17 '05 #2
I was using this header which did not work It is only different from
your suggestion in adding the 4th line but I do not think that makes
any difference.
__________________________________________________ ______________________

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the
past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// always
modified
header("Cache-Control: no-store, no-cache, must-revalidate"); //
HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
__________________________________________________ ________________________

I have to test adding a random variable to the URL, but I have seen
that Win XP has this option to enable thumbniail cache which does not
care about random variables. It looks for image names in the cache and
in my upload application the images are actually renamed to image
names already in the cache.
From php script aa.php which has image1.jpg and image2.jpg I send an
action to bb.php and there image1 is erased and image2.jpg is renamed
to image1.jpg.
Then aa.php is reloaded on bb unload. And the problem is image1.jpg
appears as the old image1.jpg.

When I look in the image folder or exit the browser and return to load
it again, everything is correct. But in the inmediate reload after I
erase, the old image with the name image1.php is sent to the browser
from the cache.
Jul 17 '05 #3

"John Pastrovick" <pa*********@hotmail.com> ???????/???????? ? ????????
?????????: news:a2**************************@posting.google.c om...
[snip]

From php script aa.php which has image1.jpg and image2.jpg I send an
action to bb.php and there image1 is erased and image2.jpg is renamed
to image1.jpg.
Then aa.php is reloaded on bb unload. And the problem is image1.jpg
appears as the old image1.jpg.

When I look in the image folder or exit the browser and return to load
it again, everything is correct. But in the inmediate reload after I
erase, the old image with the name image1.php is sent to the browser
from the cache.


I don't know why you execute in such way but anyway try to rename image2.jpg
in bb.php using any_random_name.jpg and pass this name to aa.php
Jul 17 '05 #4

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" ...
1
by: Rune | last post by:
Hi I use MMIT to render XHTML pages. How do I disable client caching? I've tried the following commands: Response.CacheControl = "private"; Response.Cache.SetNoStore();
1
by: Terry Olsen | last post by:
Is there any way to disable the client browser "Back" and "Forward" buttons while on my site? Or how would I go about knowing that a page hit is caused by a back/forward navigation? I have...
1
by: Net Virtual Mailing Lists | last post by:
Hello, I have a table with a rule that goes something like this: CREATE OR REPLACE RULE sometable_delete ON DELETE DO delete FROM cache WHERE tablename='sometable'; CREATE OR REPLACE RULE...
2
by: Mantorok | last post by:
Hi Is there an easy way to disable ALL client-side caching for my entire web-site? Is there also an easy way to cause any "refreshes" and "back" actions to cause an automatic re-direct to my...
4
by: RedHair | last post by:
Development: Windows 2003 Production :Windows 2003 ASP.NET 2.0 + C# I want to disable the cache feature of all pages in dev but enable it in production environments. What's the solution? If...
3
by: Laurahn | last post by:
Hi: I don't know if it 's possible change the behavior of the IE from asp .net app. I would like the back and forward button be disabled when the users navigates in the asp app. or disable...
8
by: anukedari | last post by:
Hi, Could any boby please help to get the answers for the following questions: Is Apache always sends "X-Cache:MISS" header even when caching is off (disable)? or Can we say that cache...
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
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
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.