Forum

Caching rule for wordpress

Fred
12 December 2016, 12:43
Hi,
I know that hugo is not a fan of wordpress so I am hoping that some wordpress user would be able to help here..
Could anyone please share what the rules they use to perform 'Leverage browser caching'?
I tried all sort but speed test are really not happy

Thank you
Nicolas
14 December 2016, 12:01
Hi

I'm using Wordpress and using multiple Directory rules with the ExpirePeriod and Extensions options, I was able to solve this problem. I'm using "Path = /" to be sure that the whole website is targeted by the rules. And with multiples Directory rules, you can have different ExpirePeriod for the different types of files.

You can build the rules you need with the following template and the speed test should be happy (well, except for the objects not on your server but they fail to understand that I have no control over those kind of thing).
Directory {
DirectoryID =
Path = /
Extensions =
ExpirePeriod =
}
Fred
14 December 2016, 12:21
Thank you
This topic has been closed.