Sha256: 33b081b0cba032b5a3f4d94fa84e594c776f0d0480a1027308cfa4ec1bc5f743

Contents?: true

Size: 1.29 KB

Versions: 31

Compression:

Stored size: 1.29 KB

Contents

For each HTTP request, Phusion Passenger will automatically look for a corresponding
page cache file, and serve that if it exists. It does this by appending ".html" to
the filename that the URI normally maps to, and checking whether that file exists.
This check occurs after checking whether the original mapped filename exists (as part
of static asset serving). All this is done without the need for special mod_rewrite
rules.

For example, suppose that the browser requests '/foo/bar'.

1. Phusion Passenger will first check whether this URI maps to a static file, i.e.
   whether the file 'foo/bar' exists in the web application's 'public' directory.
   If it does then Phusion Passenger will serve this file through Apache immediately.
2. If that doesn't exist, then Phusion Passenger will check whether the file
   'foo/bar.html' exists. If it does then Phusion Passenger will serve this file
   through Apache immediately.
3. If 'foo/bar.html' doesn't exist either, then Phusion Passenger will forward the
   request to the underlying web application.

Note that Phusion Passenger's page caching support doesn't work if your web
application uses a non-standard page cache directory, i.e. if it doesn't cache to
the 'public' directory. In that case you'll need to use mod_rewrite to serve such
page cache files.

Version data entries

31 entries across 31 versions & 4 rubygems

Version Path
passenger-3.0.21 doc/users_guide_snippets/under_the_hood/page_caching_support.txt
passenger-4.0.0.rc6 doc/users_guide_snippets/under_the_hood/page_caching_support.txt
passenger-4.0.0.rc4 doc/users_guide_snippets/under_the_hood/page_caching_support.txt
passenger-3.9.2.beta doc/users_guide_snippets/under_the_hood/page_caching_support.txt
passenger-3.0.19 doc/users_guide_snippets/under_the_hood/page_caching_support.txt
passenger-3.0.18 doc/users_guide_snippets/under_the_hood/page_caching_support.txt
passenger-3.9.1.beta doc/users_guide_snippets/under_the_hood/page_caching_support.txt
passenger-3.0.17 doc/users_guide_snippets/under_the_hood/page_caching_support.txt
passenger-3.0.15 doc/users_guide_snippets/under_the_hood/page_caching_support.txt
passenger-3.0.14 doc/users_guide_snippets/under_the_hood/page_caching_support.txt
passenger-3.0.13 doc/users_guide_snippets/under_the_hood/page_caching_support.txt
passenger-3.0.12 doc/users_guide_snippets/under_the_hood/page_caching_support.txt
yspassenger-3.0.12 doc/users_guide_snippets/under_the_hood/page_caching_support.txt
passenger-3.0.11 doc/users_guide_snippets/under_the_hood/page_caching_support.txt
passenger-3.0.10 doc/users_guide_snippets/under_the_hood/page_caching_support.txt
passenger-3.0.9 doc/users_guide_snippets/under_the_hood/page_caching_support.txt
passenger-3.0.8 doc/users_guide_snippets/under_the_hood/page_caching_support.txt
passenger-3.0.7 doc/users_guide_snippets/under_the_hood/page_caching_support.txt
passenger-3.0.6 doc/users_guide_snippets/under_the_hood/page_caching_support.txt
passenger-3.0.5 doc/users_guide_snippets/under_the_hood/page_caching_support.txt