Forum

cache control url toolkit not working for Hiawatha 10.0

Akash Talole
30 May 2016, 11:53
Hi Hugo, I tried following URL toolkit for cache control
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 2 weeks
}

When I starting hiawatha it gives error on line "Match". So this toolkit is right or not.
Guy
30 May 2016, 12:18
I think "Expire ....." is no more supported in UrlToolkit , maybe try in a directory function
guy
30 May 2016, 12:21
have a look here: https://www.hiawatha-webserver.org/forum/topic/2257/#11606
Hugo Leisink
30 May 2016, 12:30
The Expire option is indeed no longer valid in the UrlToolkit. It has been moved to the Directory section.
Akash Talole
30 May 2016, 13:03
Thanks for your Suggestions.
This topic has been closed.