"Fossies" - the Fresh Open Source Software Archive

Member "incubator-pagespeed-mod-1.14.36.1/html/doc/filter-cache-extend-pdfs.html" (28 Feb 2020, 2807 Bytes) of package /linux/www/apache_httpd_modules/incubator-pagespeed-mod-1.14.36.1.tar.gz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the incubator-pagespeed-mod-1.14.36.1.tar.gz project site itself.

Extend Cache PDFs

Configuration

The 'Extend Cache PDFs' filter is enabled by specifying:

Apache:
ModPagespeedEnableFilters extend_cache_pdfs
Nginx:
pagespeed EnableFilters extend_cache_pdfs;
in the configuration file.

Description

'Extend Cache PDFs' is a version of Extend Cache that acts on PDFs. Unlike 'Extend Cache' it applies not only to resources but also to hyperlinks. For example, while 'Extend Cache' would not apply to <a href="example.jpg">, 'Extend Cache PDFs' would apply to <a href="example.pdf">.

Operation

Extend Cache: Operation describes the standard operation of cache extension in PageSpeed. This filter identifies PDF URLs by their ".pdf" extension and marks them as eligible for cache extension.

Example

You can see the filter in action at www.modpagespeed.com for cache-extending PDFs in HTML.

Limitations

In addition to the limitations of Extend Cache, this filter is limited by its reliance on file extensions for identifying potential PDF URLs. PDF resources with URLs ending in something other than ".pdf" won't be considered for cache extension.

Risks

This filter has the same risks as Extend Cache.