On 10/18/07, Sir June <[EMAIL PROTECTED]> wrote:
>
>
> Is there a setting in Apache something like for the browser not to cache the
> pages?

1. Use <meta http-equiv="Expires..." /> in your HTML.
2. Set HTTP headers through PHP, for example:

header("Cache-Control: no-store, no-cache, must-revalidate");
header("Pragma: no-cache"); // Deprecated, and may result in invalid
header errors.

3. Use mod_headers and mod_expires.

I would assume you have a very good reason why you don't want the
client to cache content. There are advantages to caching, you see: you
ensure the "freshness" of content while keeping back-and-forth trips
between your server and clients to a minimum.

If you really need to have data refreshed on a page, might as well use AJAX.

-- 
Ian Dexter R. Marquez
http://feeds.iandexter.net/Coredump
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to