Forum

cache-control for html pages without extension

zloe
13 August 2015, 18:11
Is it possible to enable cache-control for html pages without extension (seo-friendly-something). Must it be a matching rule without a dot (.*) or say all without the extension css|eot|gif|htm|html|ico|jpeg|jpg|js|otf|pdf|png|ps|psd|svg|swf|ttf|txt|woff|woff2 ?
Hope I explained it understandably.
Hugo Leisink
13 August 2015, 21:41
Cache where? Hiawatha's internal cache or the browser's cache?
zloe
13 August 2015, 22:37
I mean the browser cache, sorry for confusing.
Hugo Leisink
14 August 2015, 08:25
A page without an extension is most likely a CGI script. The CGI script should handle the cache control. You can also use UrlToolkit's Expire option.
zloe
14 August 2015, 11:48
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
}

How can i match an extensionless file with UrlToolkit Expire?
Hugo Leisink
14 August 2015, 12:16
via [^\.]
zloe
14 August 2015, 12:38
It now runs. Prachtig, dank je wel!
This topic has been closed.