<IfModule maxcache_module>
    MaxCache On
    MaxCacheExcludeURI "/(?:wp-content|wp-includes)/|^/(?:.+/)?feed(?:/(?:.+/?)?)?$|/(?:.+/)?embed/|/(index.php/)?(.*)wp-json(/.*|$)"
    MaxCacheExcludeUA "^(facebookexternalhit|WhatsApp).*"
    # NOTE: For Apache::Test we deliberately do NOT exclude wordpress_logged_in_*
    # cookies here so that peruser-* tests can exercise logged-in cache paths.
    MaxCacheLoggedHash abc12345
    MaxCacheDynamicCookies lang currency
    # Standard WP Rocket-style cache path layout, including WebP support
    # via {WEBP_SUFFIX}. This mirrors WP Rocket's get_cache_path() naming:
    # index{MOBILE_SUFFIX}{SSL_SUFFIX}{WEBP_SUFFIX}{DYNAMIC_COOKIE_SUFFIX}.html{GZIP_SUFFIX}
    MaxCachePath /wp-content/cache/wp-rocket/{HTTP_HOST}{USER_SUFFIX}{REQUEST_URI}{QS_SUFFIX}/index{MOBILE_SUFFIX}{SSL_SUFFIX}{WEBP_SUFFIX}{DYNAMIC_COOKIE_SUFFIX}.html{GZIP_SUFFIX}
    # Global default MaxCacheOptions: tablets share desktop cache variant,
    # and mobile devices are eligible for cache when files exist.
    MaxCacheOptions -TabletAsMobile -SkipCacheOnMobile
</IfModule>

Options +FollowSymLinks
RewriteEngine On
RewriteBase /
DirectoryIndex index.html

# Root-level has no MaxCache enablement; test cases live in subdirs

# No index mapping here
