Re: [PHP] Browser cache setting

2008-01-14 Thread Richard Lynch
All the browsers cache unless the end user works at it to change that,
or you force it to not cache by giving it a different URL each time.

Playing games with no-cache headers (et al) will only give you a
bug-list of arcane browwses that don't honor those headers.

YMMV

On Fri, January 11, 2008 4:20 am, Richard Heyes wrote:
 Hi,

 What's the default setting for caching in browsers? With IE is it
 Automatically as I think it is? And what about other browsers? Some
 equivalent?

 Thanks.

 --
 Richard Heyes
 http://www.websupportsolutions.co.uk

 Knowledge Base and HelpDesk software
 that can cut the cost of online support

 ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Browser cache setting

2008-01-11 Thread Per Jessen
Richard Heyes wrote:

 Hi,
 
 What's the default setting for caching in browsers? With IE is it
 Automatically as I think it is? And what about other browsers? Some
 equivalent?

I'm pretty certain it's automatic in most. I think Firefox has a default
50Mb of cache-space. 


/Per Jessen, Zürich

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Browser cache setting

2008-01-11 Thread Richard Heyes

I'm pretty certain it's automatic in most. I think Firefox has a default
50Mb of cache-space. 


Great, thanks.

--
Richard Heyes
http://www.websupportsolutions.co.uk

Knowledge Base and HelpDesk software
that can cut the cost of online support

** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Browser cache

2002-04-24 Thread José León Serna

I think the right answer (at least the right for me) is adding a rand value
to the link of the image, that makes the browser load it every time.

Thanks a lot for your help!.

Best Regards.

QaDRAM Studio, RAD Development for the WEB
http://studio.qadram.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Browser cache

2002-04-23 Thread Rodolfo Gonzalez

http://www.php.net/manual/en/function.header.php

RT... M :)

On Tue, 23 Apr 2002, José León Serna wrote:

 Hello:
 How could I disable the browser cache?, I have a script that generates
 an image and shows it via IMG SRC=myimage. The problem is if I change
 the image, the browser doesn't reflect the changes until I push refresh. I
 supose is sending a header, but which header?
 
 Best Regards.
 
 QaDRAM Studio, RAD Development for the WEB
 http://studio.qadram.com
 
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Browser cache

2002-04-23 Thread Stuart Dallas

José León Serna [EMAIL PROTECTED] wrote:
 Hello:
 How could I disable the browser cache?, I have a script that
 generates an image and shows it via IMG SRC=myimage. The problem
 is if I change the image, the browser doesn't reflect the changes
 until I push refresh. I supose is sending a header, but which header?

Headers aren't the best way since some browsers do a great job of ignoring
them (or at least appearing to). The best way I've found to make sure the
content is retrieved from the server is to add ?n to the URL replacing
randomnumber with a random number (I usually use the return value from
time()).

HTH,
Stuart


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Browser cache

2002-04-23 Thread Jennifer Downey

PLEASE TAKE THIS OUT OF MY THREAD.
I am trying to get an answer to my question. Not yours.

Thank you
Jennifer
Stuart Dallas [EMAIL PROTECTED] wrote in message
000d01c1eae5$96243450$de01420a@stuart">news:000d01c1eae5$96243450$de01420a@stuart...
 José León Serna [EMAIL PROTECTED] wrote:
  Hello:
  How could I disable the browser cache?, I have a script that
  generates an image and shows it via IMG SRC=myimage. The problem
  is if I change the image, the browser doesn't reflect the changes
  until I push refresh. I supose is sending a header, but which header?

 Headers aren't the best way since some browsers do a great job of ignoring
 them (or at least appearing to). The best way I've found to make sure the
 content is retrieved from the server is to add ?n to the URL replacing
 randomnumber with a random number (I usually use the return value from
 time()).

 HTH,
 Stuart



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Browser cache

2002-04-23 Thread Nathan Cassano

?php
header(Cache-Control: no-cache);
?

-Original Message-
From: José León Serna [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 23, 2002 9:31 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Browser cache


Hello:
How could I disable the browser cache?, I have a script that
generates
an image and shows it via IMG SRC=myimage. The problem is if I
change
the image, the browser doesn't reflect the changes until I push refresh.
I
supose is sending a header, but which header?

Best Regards.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Browser Cache

2002-04-23 Thread Maxim Maletsky \(PHPBeginner.com\)

Sorry, that was regarding the browser cache.


Sincerely,

Maxim Maletsky
Founder, Chief Developer

www.PHPBeginner.com   // where PHP Begins




-Original Message-
From: Maxim Maletsky (PHPBeginner.com)
[mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 23, 2002 7:44 PM
To: 'Richard Emery'; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] If else question



Look also at the examples in docs:

--
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 
--

php.net/header



Sincerely,

Maxim Maletsky
Founder, Chief Developer

www.PHPBeginner.com   // where PHP Begins




-Original Message-
From: Richard Emery [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 23, 2002 7:41 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Fw: [PHP] If else question


OK...this has dragged on...

Jennifer, show us your ACTUAL code, including database access
statements.

We can't help you if you expect us to read your mind...

- Original Message -
From: Jennifer Downey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 23, 2002 12:17 PM
Subject: Re: [PHP] If else question


No this is the first if statement but there are nested if's after that.
I'd post the code but everyone yells at me about my coding style. If you
promise not to yell I will post it.

Jennifer
-Bd- [EMAIL PROTECTED] wrote in message
001d01c1eae9$d58f4360$[EMAIL PROTECTED]">news:001d01c1eae9$d58f4360$[EMAIL PROTECTED]...
 Is this a nested if? (inside another if statement?)




 - Original Message -
 From: Jennifer Downey [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, April 23, 2002 1:05 PM
 Subject: Re: [PHP] If else question


 
  I just looked at my hosting service thinkg it may have been because
  they just upgraded to 4.1 php. so I dumped my database and loaded it

  to my machine at home and find that it does the same thing.
 
  I have 4.06 php on win me my hosting service is 4.1 php on redhat
  linux
so
  I'm thinking that is not the case.
 
  I have used this code through out my site and this is the only part
  it
 does
  this on and I am not understanding why.
 
  Jennifer
 
 
 
 
  Natalie Leotta [EMAIL PROTECTED] wrote in message
  7546CB15C0A1D311BF0D0004AC4C4B0C024ABFC4@SSIMSEXCHNG">news:7546CB15C0A1D311BF0D0004AC4C4B0C024ABFC4@SSIMSEXCHNG...
   My officemate and I talked about this and the only thing he could
   come
 up
   with was a possible problem with your parser.  Are you using a
   beta
  version
   or something unusual?  I don't know if you have a way to know this

   -
the
   programmers didn't set up PHP where I work, but I know our web
   server
is
   apache and it's on a unix box.  I've never run into this problem
before.
   Have you had it happen in other programs?  Have you ever used this
code
 in
   another program?  If it's consistently incorrect then it may be a
 problem
   with your parser.  That's not really my area of expertise, but
   it's something you could look into if no one else has any better 
   ideas :-)
  
   -Natalie
  
   -Original Message-
   From: Jennifer Downey [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, April 23, 2002 12:26 PM
   To: [EMAIL PROTECTED]
   Subject: Re: [PHP] If else question
  
  
   It shows both.
  
   Natalie Leotta [EMAIL PROTECTED] wrote in message
   7546CB15C0A1D311BF0D0004AC4C4B0C024ABFC3@SSIMSEXCHNG">news:7546CB15C0A1D311BF0D0004AC4C4B0C024ABFC3@SSIMSEXCHNG...
Does it show the message and the form or just the message?
   
-Natalie
   
-Original Message-
From: Jennifer Downey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 12:23 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] If else question
   
   
   
 If and else expect to be followed by exactly 1 statement. To
 aggregate multiple statements as one, surround them with 
 {curly braces}. I'm guessing you didn't do that, and you're 
 seeing the execution of all but the first of the statements 
 following the
else.

 So it should be:

   if ($var1)
 echo can't be found;
   else
   {
 echo first line of form;
 echo second line of form;
   }
This is what I have:
   
if($quantity  1)
{
echo Sorry I can't seem to locate this item;
}
else
{
do this
}
So yes I have done exactly as you have stated and it still shows

the form.
   
Jennifer
   
   
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
   
   
   
--
PHP General Mailing List 

Re: [PHP] Browser cache and form with $PHP_SELF

2001-01-11 Thread Egan

On Wed, 10 Jan 2001 12:13:26 +0530, "Hrishi" [EMAIL PROTECTED]
wrote:

Cache-Control: no-cache

will make sure any proxies/ISP caches will also not store the page.

Yes this works.  I can see that IE5 does not cache the page locally,
by looking in Temporary Internet Files.

I realize now though, that what I really need is to drop certain pages
out of the browser "back" chain.

For instance say I have three pages:

   A --  B  --  C


Once the user selects page C, I don't want them to see page B with the
browser back button.  If they use the back button, I want them to jump
from C all the way back to A.

IOW, I want to "unlink" B from the chain. Is that possible?

Egan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]