You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-de@httpd.apache.org by Henning <he...@h-quadrat.com> on 2002/09/21 13:46:17 UTC
Caching von php-Seiten verhindern
tach zusammen!
habe schon seit eingier zeit meinen apache samt php und tomcat laufen, bin jedoch mit einer tatsache etwas unzufrieden:
irgendwie scheinen die php-seiten gecached zu werden, konkret erhalte ich z.b. bei phpmyadmin alte anzeigen, bei einem reload kommen dann die korrekten parameter / inhalte. das problem tritt browserunabhängig auf.
kann man das caching in der konfiguartion abstellen?
danke für die tips & entspanntes wochenende,
henning
Re: Caching von php-Seiten verhindern
Posted by Thomas Bader <th...@trash.net>.
* Henning <he...@h-quadrat.com> [020921 13:46]:
> habe schon seit eingier zeit meinen apache samt php und tomcat laufen, bin
> jedoch mit einer tatsache etwas unzufrieden:
>
> irgendwie scheinen die php-seiten gecached zu werden, konkret erhalte ich
> z.b. bei phpmyadmin alte anzeigen, bei einem reload kommen dann die
> korrekten parameter / inhalte. das problem tritt browserunabhängig auf.
>
> kann man das caching in der konfiguartion abstellen?
Trotz' offtopic:
<?
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
?>
--
<https://trash.net/~thomasb/> PGP and OpenPGP encrypted mail preferred.
"We can't buy more time, 'cause time won't accept our money."
-- Bad Religion
Re: Caching von php-Seiten verhindern
Posted by Sascha Braun <sa...@gmx.de>.
Sollte es nicht lieber
application/x-httpd-php
heissen?
Ich hab aber auch keine Ahnung, nur das gleiche nervige Problem
Caio
Sascha
----- Original Message -----
From: Henning
To: users-de@httpd.apache.org
Sent: Sunday, September 22, 2002 11:55 PM
Subject: Re: Caching von php-Seiten verhindern
ah, das ist doch ein sehr wertvoller hinweis. so off-topic war mein thema ja garnicht . . .
ich gehe also folgendermassen vor:
a) aktiviere das modul mod_expires.so (war bei mir noch nicht)
b) Füge die Zeilen
# enable expirations
ExpiresActive On
# expire php pages after a minute in the client's cache
ExpiresByType text/php A60000
in der httpd.conf ein.
richtig? stimmt die text/php bezeichnung? wie macht man das sonst?
danke,
henning
Lars Eilebrecht wrote:
According to Henning:
kann man das caching in der konfiguartion abstellen?
Ja, schau Dir mal die Doku von mod_expires an.ciao...
--
the mind is sexy; the soul is sexier.
henning@h-quadrat.com
"The path of the righteous man is beset on all sides with the
iniquities of the selfish and the tyranny of evil men. Blessed
is he who in the name of charity and good will shepherds the
weak through the valley of darkness, for he is truly his
brother's keeper and the finder of lost children. And I will
strike down upon those with great vengeance and with furious
anger those who attempt to poison and destroy my brothers. And
you will know that my name is the Lord when
I lay my vengeance upon thee."
Re: Caching von php-Seiten verhindern
Posted by Henning <he...@h-quadrat.com>.
Hallo zusammen!
Könnte noch jemand schnell mailen, wie die
ExpiresByType text/php A60000
Zeile genau aussehen muss (insbesondere der Typ, also text/php oder wie?).
Das Ding geht heute Nacht sowas wie in Produktion und ich bekomm's
leider selbst ned hin, weil viel Stress in anderen Bereichen.
Danke für den Support,
Henning
Henning wrote:
> ah, das ist doch ein sehr wertvoller hinweis. so off-topic war mein
> thema ja garnicht . . .
>
> ich gehe also folgendermassen vor:
>
> a) aktiviere das modul mod_expires.so (war bei mir noch nicht)
> b) Füge die Zeilen
> # enable expirations
> ExpiresActive On
> # expire php pages after a minute in the client's cache
> ExpiresByType text/php A60000
>
> in der httpd.conf ein.
>
> richtig? stimmt die text/php bezeichnung? wie macht man das sonst?
>
> danke,
>
> henning
>
>
>
> Lars Eilebrecht wrote:
>
>>According to Henning:
>>
>>>kann man das caching in der konfiguartion abstellen?
>>>
>>
>>Ja, schau Dir mal die Doku von mod_expires an.
>>
>>
>>ciao...
>>
>
>--
>the mind is sexy; the soul is sexier.
>
>henning@h-quadrat.com
>
>
>"The path of the righteous man is beset on all sides with the
>iniquities of the selfish and the tyranny of evil men. Blessed
>is he who in the name of charity and good will shepherds the
>weak through the valley of darkness, for he is truly his
>brother's keeper and the finder of lost children. And I will
>strike down upon those with great vengeance and with furious
>anger those who attempt to poison and destroy my brothers. And
>you will know that my name is the Lord when
>I lay my vengeance upon thee."
>
>
--
the mind is sexy; the soul is sexier.
henning@h-quadrat.com
"The path of the righteous man is beset on all sides with the
iniquities of the selfish and the tyranny of evil men. Blessed
is he who in the name of charity and good will shepherds the
weak through the valley of darkness, for he is truly his
brother's keeper and the finder of lost children. And I will
strike down upon those with great vengeance and with furious
anger those who attempt to poison and destroy my brothers. And
you will know that my name is the Lord when
I lay my vengeance upon thee."
Re: Caching von php-Seiten verhindern
Posted by Henning <he...@h-quadrat.com>.
ah, das ist doch ein sehr wertvoller hinweis. so off-topic war mein
thema ja garnicht . . .
ich gehe also folgendermassen vor:
a) aktiviere das modul mod_expires.so (war bei mir noch nicht)
b) Füge die Zeilen
# enable expirations
ExpiresActive On
# expire php pages after a minute in the client's cache
ExpiresByType text/php A60000
in der httpd.conf ein.
richtig? stimmt die text/php bezeichnung? wie macht man das sonst?
danke,
henning
Lars Eilebrecht wrote:
>According to Henning:
>
>>kann man das caching in der konfiguartion abstellen?
>>
>
>Ja, schau Dir mal die Doku von mod_expires an.
>
>
>ciao...
>
--
the mind is sexy; the soul is sexier.
henning@h-quadrat.com
"The path of the righteous man is beset on all sides with the
iniquities of the selfish and the tyranny of evil men. Blessed
is he who in the name of charity and good will shepherds the
weak through the valley of darkness, for he is truly his
brother's keeper and the finder of lost children. And I will
strike down upon those with great vengeance and with furious
anger those who attempt to poison and destroy my brothers. And
you will know that my name is the Lord when
I lay my vengeance upon thee."
Re: Caching von php-Seiten verhindern
Posted by Lars Eilebrecht <la...@hyperreal.org>.
According to Henning:
> kann man das caching in der konfiguartion abstellen?
Ja, schau Dir mal die Doku von mod_expires an.
ciao...
--
Lars Eilebrecht - Keyboard? How quaint. (Scotty, ST IV)
lars@hyperreal.org