Cache entire folder
4 posts
• Page 1 of 1
Cache entire folder
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
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
Re: Cache entire folder
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>
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>
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 21 guests