Ask Your Question

How to enable caching for a particular URL with Apache module?

asked 2015-01-14 16:41:41 -0600

smsearcy gravatar image

Using PuppetLab's Apache module, how would I enable caching for a particular URL?

Neither apache::mod::cache nor apache::mod::disk_cache accept any parameters and based on puppetlabs-apache/templates/mod/disk_cache.conf.erb it appears that including apache::mod::disk_cache will enable caching for /.

So how would I enable caching for just a particular URL, e.g. /foo?

edit retag flag offensive close merge delete


I ended up just using jfryman-nginx, I couldn't get it working in Apache.

smsearcy gravatar imagesmsearcy ( 2015-02-12 12:35:58 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-01-16 03:15:53 -0600

kariboe gravatar image

A wild/quick guess but worth trying:

Create a vhost and add a directories parameter or add a custom_fragment

apache::vhost { '':
  docroot     => '/path/to/directory',
  directories => [ { path => '/path/to/directory', handler => value } ],

More information here:

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-01-14 16:41:41 -0600

Seen: 119 times

Last updated: Jan 16 '15