Skip to content
WJunction - Webmaster Forum

Some help with browser caching

Status
Not open for further replies.
Trying to optimize my vb board, added this code to htaccess in attempt to cache a specific folder and type for 1 month. When I try though, I get internal server error.

Code:
<Directory "/public_html/forum/images/forumicons">
    <FilesMatch "\.(gif|jpg|png)$">
	<IfModule mod_expires.c>
	ExpiresActive On
        ExpiresDefault "access plus 1 month"
	</IfModule>
    </FilesMatch>
</Directory>

What did I do wrong?

Thanks
 

1 comment

I think its to do with the <Directory> bit im not 100% you can specify it like that.

If you have root access, why not install memcache.
 
Status
Not open for further replies.

About the author

B
Member · Joined
24
Messages
1
Reactions
3
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom