Apache 2.4 mod_cache with disk cache is not working

Solution Unverified - Updated -

Issue

  • The caching with mod_cache does not work for the following configuration:
CacheRoot "/etc/httpd/cacheroot"
CacheEnable disk /
CacheDirLevels 3
CacheDirLength 5
CacheIgnoreCacheControl On
CacheIgnoreNoLastMod On
CacheIgnoreQueryString On
  • mod_cache does not work when I use a protocol in the url string. For example:
CacheEnable  disk  http://www.example.org/
CacheEnable  disk  http://

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • httpd 2.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content