CacheDisable cannot occur within <Directory> section Remove "directory" from context on: https://httpd.apache.org/docs/2.4/mod/mod_cache.html#cachedisable Currently: Context: server config, virtual host, directory, .htaccess Proposed change: Context: server config, virtual host, .htaccess
The doc should be tweaked. The "directory" mentioned is related to a set of directives. See [1]. This set is: <Directory>, <Location>, <Files>, <If>, and <Proxy> However, this directive is explicitly disallowed in <Directory>, <File> and <If> in the code. So it should work only in <Location> and <Proxy>. [1]: https://httpd.apache.org/docs/2.4/mod/directive-dict.html#Context