Cache entire folder

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 8
Joined: 03 Oct 2012, 08:35

Cache entire folder

23 Mar 2015, 17:13

Hi, I read the article about improving site performance and the example is to cache the homepage only.

Header set Cache-Control public,max-age=600
SetEnvIf request_uri ^/$ cache-enable=mem

Could someone show me how to cache all the files inside a folder?

Thanks

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Cache entire folder

26 Mar 2015, 15:28

Hello,

Please try to enclose the directives into Location section:

<Location /directory>
Header set Cache-Control public,max-age=600
SetEnvIf request_uri ^.*$ cache-enable=mem
</Location>

User avatar
Posts: 8
Joined: 03 Oct 2012, 08:35

Re: Cache entire folder

26 Mar 2015, 16:11

Hi Anton! Is this supposed to go on .htaccess or httpd.conf ? Thanks.

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Cache entire folder

28 Mar 2015, 07:22

Hello,

Try putting in to the .htaccess in the root of your site.

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 21 guests