Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Setting cache with htaccess


jdMorgan - 9:42 pm on Aug 11, 2004 (gmt 0)


> I also understand that using M in the ExpiresDefault I'm requesting that the page is cached in the server, not in the browser.

No, it says to apply the expiration time using the time the file was last modified, rather than the time the file was last accessed (A2240000).

While mod_expires will set the expires header, it does not establish a cache policy. To do that, you'll need to use mod_headers with a command such as

Header set Cache-control: "public"

> Also I wanted to know if this can make the bots pick cached pages instead of calling the script.

Neither of these directives will give you "automatic" server-side caching. To do that, you'll need the script itself (or another script) to check for a cached version. If one exists, serve it. If not, create it and then serve it. Robots don't have any special ability to use your site in any way different from a browser; They ask your server for a resource (file, page, image, etc.) by URL, and index whatever comes back.

Jim


Thread source:: http://www.webmasterworld.com/apache/1922.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com