You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Francisco Ruiz Ibañez <fl...@comunet.es> on 2002/03/01 13:06:03 UTC

Headers apache win32

Hi all:

        I have apache server 1.3.22 + php 4.1.1 + win32. Our clients (other networks) goes internet througth a proxy server. I like then not to cacheing pages.

        I have tried uncomentting the lines:

                LoadModule expires_module modules/mod_expires.so
                LoadModule headers_module modules/mod_headers.so

                AddModule mod_expires.c
                AddModule mod_headers.c


        Also I wrote:

                header set Cache-control "private,no-cache"

        And restart the apache service. But the clients continuing cacheing pages. What can I do?. How can I know loaded modules in apache win 32?

            I need clients not cacheing pages.

Thank you.

Re: Headers apache win32

Posted by Francisco Ruiz Ibañez <fl...@comunet.es>.
Finally putting in httpd.conf the line

header append Cache-control "private, no-cache"

The proxy does not cacheing the pages. The new problem is that now its
imposible to download zip files from the web although existing in the path.
Solution one proble other problem appears.





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: Headers apache win32

Posted by Joshua Slive <jo...@slive.ca>.
> From: Francisco Ruiz Ibañez [mailto:flruiz@comunet.es]

> Thank you for your response. You say its not posible to do it with the
> configuration of apache. neither sending headers to the clients?

You can make suggestions to the clients.  The clients make the final
decision.

See mod_expires, mod_headers and the HTTP/1.1 specification.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: Headers apache win32

Posted by Joshua Slive <jo...@slive.ca>.
> From: Francisco Ruiz Ibañez [mailto:flruiz@comunet.es]

> 2 .-And restarting httpd server is suficcient to avoiding client
> caching via
> proxy server?

No, as has been stated several times, the client or proxy can do whatever it
wants.  However, this configuration does suggest to clients and proxies that
they shouldn't be caching.  And I believe that an HTTP/1.1 compliant browser
would be forbidden from caching, but you should check the specification to
be sure.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Headers apache win32

Posted by Bill -Sx- Jones <sn...@mac.com>.
On 3/4/02 12:52 PM, "Francisco Ruiz Ibañez" <fl...@comunet.es> wrote:

> All under win32+apache 1.3.22.


Hmmm, does Win32 Apache have -

#
# MetaDir: specifies the name of the directory in which Apache can find
# meta information files. These files contain additional HTTP headers
# to include when sending the document
#
#MetaDir .web


???
-Sx-  :]



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Headers apache win32

Posted by Francisco Ruiz Ibañez <fl...@comunet.es>.
In the httpd.conf

1 .-Putting the lines

                                Header Add Expires 0
                                Header Add Pragma no-cache
                                Header Add Cache-Control no-cache



uncomenting de lines

                                AddModule mod_expires.c
                                AddModule mod_headers.c
                                LoadModule headers_module
modules/mod_headers.so
                                LoadModule expires_module
modules/mod_expires.so

2 .-And restarting httpd server is suficcient to avoiding client caching via
proxy server?

All under win32+apache 1.3.22.
----- Original Message -----
From: "Joshua Slive" <jo...@slive.ca>
To: <us...@httpd.apache.org>
Sent: Monday, March 04, 2002 6:46 PM
Subject: RE: Headers apache win32


>
> > From: Bryan Henry [mailto:bryan.henry@mail.utexas.edu]
>
> > I believe these header tags will not let clients and search engines
cache
> > your pages
> >
> > <META HTTP-EQUIV="Expires" CONTENT="0">
> > <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
> >
> > and
> > either --> <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
> > or -->     <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache,
> > must-revalidate">
>
> Please don't use non-standard, browser-specific stuff like that when you
can
> easily add
>
> Header Add Expires 0
> Header Add Pragma no-cache
> Header Add Cache-Control no-cache
>
> to httpd.conf.  HTTP Headers should be sent as HTTP Headers, not inside
> HTML.
>
> Joshua.
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Headers apache win32

Posted by Bill -Sx- Jones <sn...@mac.com>.
On 3/4/02 12:46 PM, "Joshua Slive" <jo...@slive.ca> wrote:

>> <META HTTP-EQUIV="Expires" CONTENT="0">
>> <META HTTP-EQUIV="Pragma" CONTENT="no-cache">

>> either --> <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
>> or -->     <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache,
>> must-revalidate">
> 

> Header Add Expires 0
> Header Add Pragma no-cache
> Header Add Cache-Control no-cache


PMFJI - while I apologize for my last post - this too is only a 'suggestion'
as made by the server; the client doesn't have to honor it.


I vote we all just write our own clients!
-Sx-  :]



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: Headers apache win32

Posted by Joshua Slive <jo...@slive.ca>.
> From: Bryan Henry [mailto:bryan.henry@mail.utexas.edu]

> I believe these header tags will not let clients and search engines cache
> your pages
>
> <META HTTP-EQUIV="Expires" CONTENT="0">
> <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
>
> and
> either --> <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
> or -->     <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache,
> must-revalidate">

Please don't use non-standard, browser-specific stuff like that when you can
easily add

Header Add Expires 0
Header Add Pragma no-cache
Header Add Cache-Control no-cache

to httpd.conf.  HTTP Headers should be sent as HTTP Headers, not inside
HTML.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: Headers apache win32

Posted by Bryan Henry <br...@mail.utexas.edu>.
HaH~!~
you know what I meant...

-----Original Message-----
From: Bill -Sx- Jones [mailto:sneex@mac.com]
Sent: Monday, March 04, 2002 11:38 AM
To: users@httpd.apache.org
Subject: Re: Headers apache win32


On 3/4/02 12:32 PM, "Bryan Henry" <br...@mail.utexas.edu> wrote:

> I believe these header tags will not let clients and search engines cache
> your pages

LOL :)  He said 'not let'  :)

My client will do what *I* say - not what a remote server says (if it didn't
then I wouldn't use it)  :)

I call it 'C/S Security' and some developers (maybe not many) do still
believe it should work a certain way :)

Cheers!
-Sx-  :]



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Headers apache win32

Posted by Bill -Sx- Jones <sn...@mac.com>.
On 3/4/02 12:32 PM, "Bryan Henry" <br...@mail.utexas.edu> wrote:

> I believe these header tags will not let clients and search engines cache
> your pages

LOL :)  He said 'not let'  :)

My client will do what *I* say - not what a remote server says (if it didn't
then I wouldn't use it)  :)

I call it 'C/S Security' and some developers (maybe not many) do still
believe it should work a certain way :)

Cheers!
-Sx-  :]



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: Headers apache win32

Posted by Bryan Henry <br...@mail.utexas.edu>.
I believe these header tags will not let clients and search engines cache
your pages

<META HTTP-EQUIV="Expires" CONTENT="0">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

and
either --> <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
or -->     <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache,
must-revalidate">

~ b r y a n   h e n r y


-----Original Message-----
From: Francisco Ruiz Ibañez [mailto:flruiz@comunet.es]
Sent: Monday, March 04, 2002 11:16 AM
To: users@httpd.apache.org

>Thank you for your response. You say its not posible to do it with the
>configuration of apache. neither sending headers to the clients?

----- Original Message -----
From: "Pietro Cagnoni" <pc...@mclink.net>
To: <us...@httpd.apache.org>

> > How can I know loaded modules in
> > apache win 32?
>
> use mod_info
>
> >             I need clients not cacheing pages.
>
> configure the clients not to cache pages! there's nothing you can do
> about it with apache configuration.
>
> pietro.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Headers apache win32

Posted by Francisco Ruiz Ibañez <fl...@comunet.es>.
Thank you for your response. You say its not posible to do it with the
configuration of apache. neither sending headers to the clients?

Thanks again.
----- Original Message -----
From: "Pietro Cagnoni" <pc...@mclink.net>
To: <us...@httpd.apache.org>
Sent: Friday, March 01, 2002 2:01 PM
Subject: Re: Headers apache win32


> > How can I know loaded modules in
> > apache win 32?
>
> use mod_info
>
> >             I need clients not cacheing pages.
>
> configure the clients not to cache pages! there's nothing you can do
> about it with apache configuration.
>
> pietro.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Headers apache win32

Posted by Pietro Cagnoni <pc...@mclink.net>.
> How can I know loaded modules in
> apache win 32?

use mod_info 

>             I need clients not cacheing pages.

configure the clients not to cache pages! there's nothing you can do
about it with apache configuration.

pietro.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org