Using PuppetLab's Apache module, how would I enable caching for a particular URL? (I'm running a web application that puts all static content under a particular URL)
I understand the resulting configuration line should be CacheEnable type /foo
, however neither apache::mod::cache
nor apache::mod::disk_cache
accept any parameters and from puppetlabs-apache/templates/mod/disk_cache.conf.erb it appears that including apache::mod::disk_cache
will enable caching for /
(which I don't want).
So how would I enable caching for just a particular URL via Puppet? Should I just use the concat::fragment
to add the CacheEnable
directive to the vhost or is there another way to do it?