Forum

Expire Syntax

Aaron Collins
27 January 2016, 00:25
I have been using the cache toolkit until I recently updated Hiawatha and read that there has been an addition of public and private to the expire option. Forgive me but can I get more context on the difference between the two and what the proper syntax is? I have been using
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)(\?v=.*|\?ver=.*)?(/|$) Expire 1 weeks, private
}


Thanks for the help!
Hugo Leisink
27 January 2016, 08:17
The Expire option is no longer a UrlToolkit option. Use the ExpirePeriod option in a Directory{} section instead. See the manual page for more information.
This topic has been closed.