I'm having some issues with caching on prestashop at the new version,
the shopsystem has an insane use of rewrites and it's picture folder is even worse, interleaved as hell.
Previously, I used:
UrlToolkit {
ToolkitID = cache-control
Match ^/.*\.(css|eot|gif|htm|html|ico|jpeg|jpg|js|otf|pdf|png|ps|psd|svg|swf|ttf|txt|woff|woff2)(/|$) Expire 7 days
}
VirtualHost {
[...]
UseToolkit = ref_spam_fix, cache-control, prestashop
[...]
}
And I got all the desired file-endings cached for 7 days.
now at v10 I use:
VirtualHost {
[...]
UseToolkit = ref_spam_fix, prestashop
UseDirectory = static
[...]
}
Directory {
DirectoryID = static
Path = /.*\.(css|eot|gif|htm|html|ico|jpeg|jpg|js|otf|pdf|png|ps|psd|svg|swf|ttf|txt|woff|woff2)(/|$)
ExpirePeriod = 2 weeks
}
and it does nothing, unfortunately.
I also tried setting /img etc. as Path= but as I wrote before it does insane nesting, like /img/p/1/2/3/3/1233-thickbox_default.jpg and I don't think setting path as /img makes it goes recursively through these folders.
Would be neat if I could rebuild the above Expire toolkit as directory settings.
Maybe the result can be used to swap the now obsolete http://dotbalm.org/http-caching-in-hiawatha/ toolkits
Greetings.