Skip to main content
mod_pagespeed 1.15 — Cyclone Cache, modernized optimizations, IIS + .NET support, and six years of security updates
2.0 1.15

mod_pagespeed Directive Index (Apache & nginx)

Alphabetical reference of every mod_pagespeed 1.15 configuration directive — Apache and nginx syntax, default values, and links to the full caching, image, CSS/JS, and domain docs.

Every mod_pagespeed 1.15 directive is listed alphabetically below. In Apache, prefix each directive name with ModPagespeed (e.g., ModPagespeedEnableFilters). In nginx, prefix with pagespeed and terminate with a semicolon (e.g., pagespeed EnableFilters ...;).

Use this page for quick lookups. To see how directives fit together into a working setup, read the configuration reference; to turn individual optimizations on or off, see filter selection.

DirectiveDefaultDescriptionDocs
AddResourceHeader(none)Adds custom header to optimized resourcesConfiguration
AdminDomainsAllow *ACL for admin page accessAdmin Console
Allow(none)Allows optimization of resources matching a URL patternDomain Configuration
AdminPath(none; IIS: /pagespeed_admin)URL path for admin pages — unset means no handler on nginx/ApacheAdmin Console
AutoCreateCachePathonAuto-creates the cache directory on first request (IIS)IIS Configuration
AvifAnimatedRecompressionQuality50Quality for animated AVIF outputImage Filters
AvifQualityForSaveData45AVIF quality for clients sending Save-Data: onImage Filters
AvifRecompressionQuality60AVIF quality level; -1 uses ImageRecompressionQualityImage Filters
AvifRecompressionQualityForSmallScreens50AVIF quality for small-screen clientsImage Filters
AvifTimeoutMs5000Wall-clock budget for one AVIF encode; exceeded encodes are abandonedImage Filters
CacheFlushFilenamecache.flushFilename for legacy cache flushCaching
CacheFlushPollIntervalSec5Interval to check for flush fileCaching
CacheFragment(auto)Cache partition keyCaching
ConsoleDomainsAllow *ACL for console accessAdmin Console
ConsolePath(none; IIS: /pagespeed_console)URL path for console — unset means no handler on nginx/ApacheAdmin Console
CriticalImagesBeaconEnabledonEnables beacon for image optimizationImage Filters
CssFlattenMaxBytes1024000Max size for flattened CSSCSS Filters
CssImageInlineMaxBytes0Max image size to inline in CSSCSS Filters
CssInlineMaxBytes2048Max CSS file size to inlineCSS Filters
CssOutlineMinBytes3000Min inline CSS to externalizeCSS Filters
CycloneRamCacheKb0 (r18+)Cyclone RAM tier size (0 = off, -1 = legacy LRU coupling)Caching
CycloneZeroCopyoffOpt-in (r19+): read cached hits directly from the mapped cache file, no copy; the switch that opts a server into zero-copy servingCaching
CycloneZeroCopyServeon (needs CycloneZeroCopy)Serve cached hits by reference (aliased) into the output buffer; engages only once CycloneZeroCopy maps values — set explicitly on Apache and IISCaching
DefaultSharedMemoryCacheKB51200Shared memory metadata cache sizeCaching
Disallow(none)Prevents optimization of resources matching a URL patternDomain Configuration
DisableFilters(none)Disables specific filtersFilter Selection
DisableRewriteOnNoTransformonHonors Cache-Control: no-transformConfiguration
Domain(none)Authorizes a domain for resource fetchingDomain Configuration
EnableCachePurgeoffEnables per-URL cache purgeCaching
EnableFilters(none)Enables specific filtersFilter Selection
FetcherTimeoutMs5000Timeout for resource fetchesCaching
FetchHttpsenableControls HTTPS resource fetchingHTTPS Configuration
FetchWithGzipoffFetches resources with gzip Accept-EncodingCaching
FileCachePath(required)Path for file-based cache storageCaching
FileCacheSizeKb1048576 (r18+)Maximum file cache size in KBCaching
FileCacheSmallTierPercent10 (r18+)Percent of cache reserved for metadata/page data (0=off)Caching
ForbidAllDisabledFiltersoffForbids all non-enabled filtersFilter Selection
ForbidFilters(none)Permanently disables specific filtersFilter Selection
GlobalAdminDomainsAllow *ACL for global admin accessAdmin Console
GlobalStatisticsDomainsAllow *ACL for global statistics accessAdmin Console
GlobalAdminPath(none; IIS: /pagespeed_global_admin)URL path for global admin — unset means no handler on nginx/ApacheAdmin Console
GlobalStatisticsPath(nginx path)URL for global stats (nginx)Admin Console
HonorCsponRespects Content-Security-Policy headers and meta tagsConfiguration
HttpCacheCompressionLevel9Compression level for cached HTTP responsesCaching
ImageInlineMaxBytes3072Max image size to inline as data URIImage Filters
ImageLimitOptimizedPercent100Only serve if optimized is smallerImage Filters
ImageLimitResizeAreaPercent100Only resize if result area is this percent of originalImage Filters
ImageMaxRewritesAtOnce8Parallel image optimization limitImage Filters
ImageRecompressionQuality85Image recompression qualityImage Filters
ImageResolutionLimitBytes33554432Max image size to optimizeImage Filters
ImplicitCacheTtlMs300000Cache TTL for resources without explicit headersCaching
InfoUrlsLocalOnlyonRestricts admin/info URLs to the local machine (IIS)Admin Console
InPlaceResourceOptimizationonEnables IPROCaching
InPlaceRewriteDeadlineMs10IPRO rewrite deadline per flushCaching
InPlaceSMaxAgeSec10s-maxage for IPRO responsesCaching
JpegRecompressionQuality-1JPEG quality (-1 = use general)Image Filters
JsInlineMaxBytes2048Max JS file size to inlineJavaScript Filters
JsOutlineMinBytes3000Min inline JS to externalizeJavaScript Filters
LazyloadImagesModeauto (r18+)Lazy-loading mechanism: auto, native, or jsImage Filters
LazyloadImagesSkipFirst1 (r18+)Images at page start never lazy-loaded without fold dataImage Filters
ListOutstandingUrlsOnErroroffShows fetch URLs in error responsesConfiguration
LoadFromFile(none)Loads resources from filesystemDomain Configuration
LoadFromFileCacheTtlMs(ImplicitCacheTtlMs)Cache TTL for filesystem-loaded resourcesCaching
LogDir(none)Directory for statistics loggingAdmin Console
LowercaseHtmlNamesoffLowercases HTML tag/attribute namesConfiguration
LRUCacheByteLimit0Legacy; no effect with the Cyclone backendCaching
LRUCacheKbPerProcess0Legacy; sizes RAM tier when CycloneRamCacheKb is -1Caching
MapOriginDomain(none)Maps public domain to origin for fetchingDomain Configuration
MapProxyDomain(none)Proxies and optimizes content from a separate originDomain Configuration
MapRewriteDomain(none)Rewrites resource URLs to another domainDomain Configuration
MaxSegmentLength1024Max length of a generated URL segmentConfiguration
MemcachedServers(none)Memcached server listCaching
MemcachedTimeoutUs500000Memcached operation timeoutCaching
MessageBufferSize0Size of message history bufferAdmin Console
MessagesDomainsAllow *ACL for message historyAdmin Console
MessagesPath(nginx path)URL for messages (nginx)Admin Console
ModifyCachingHeadersonSets caching headers on HTMLConfiguration
NativeFetcherMaxKeepaliveRequests100Max requests per keepalive connection for the native fetcher (nginx, http block only)HTTPS Configuration
PreserveUrlRelativityonPreserves relative URLsConfiguration
PurgeMethod(none)HTTP method for cache purgeCaching
RateLimitBackgroundFetchesonRate-limits background fetchesCaching
RedisDatabaseIndex0Redis database indexCaching
RedisReconnectionDelayMs1000Redis reconnection delayCaching
RedisServer(none)Redis server addressCaching
RedisTimeoutUs50000Redis operation timeoutCaching
RedisTTLSec-1Redis entry TTLCaching
RespectVaryoffRespects Vary headers on resourcesConfiguration
ResponsiveImageDensities1.5,2,3Pixel densities generated for responsive_imagesImage Filters
RetainComment(none)Wildcard pattern for comments to keepHTML Filters
RewriteDeadlinePerFlushMs10Rewrite timeout per HTML flushCaching
RewriteLevelCoreFiltersBaseline filter setFilter Selection
RewriteRandomDropPercentage0Random percentage of rewrites to skipFilter Selection
ShardDomain(none)Distributes resources across domainsDomain Configuration
ShmMetadataCacheCheckpointIntervalSec300No-op; superseded by write-through (v1.15.0+r17)Caching
SslCertDirectory(none)SSL certificate directoryHTTPS Configuration
SslCertFile(none)SSL certificate fileHTTPS Configuration
StaticAssetPrefix/pagespeed_static/URL prefix for static assetsConfiguration
StatisticsonEnables statistics collectionAdmin Console
StatisticsDomainsAllow *ACL for statistics accessAdmin Console
StatisticsLoggingoffEnables logging for console graphsAdmin Console
StatisticsPath(nginx path)URL for statistics (nginx)Admin Console
SupportNoScriptEnabledonInserts noscript redirectTroubleshooting
UseNativeFetcheroffUses nginx’s event-driven fetcher for resource fetches, HTTP and HTTPS (nginx, http block only)HTTPS Configuration
UsePerVhostStatisticsoffPer-virtual-host statisticsAdmin Console
WebpAnimatedRecompressionQuality70Quality for animated WebP conversionImage Filters
WebpRecompressionQuality80WebP quality levelImage Filters
XHeaderValue(version)X-Mod-Pagespeed/X-Page-Speed header valueConfiguration

See also