caching - Apache - Add Cache-Control header if not already added -
in apache, how can set response header if not set cgi application?
i need way automatically add cache-control header static content on website, want cgi application able specify own cache-control header too.
setenvif not work purpose because matches request headers.
is there way conditionally / optionally set header if not set?
1) configure apache append value of empty string cache-control header ensure included in response.
2) configure apache set cache-control header if it's still set empty string.
<filesmatch "\.(css|ico|flv|gif|jpeg|jpg|js|pdf|png|swf)$"> header append cache-control "" header edit cache-control "^[, ]*$" "max-age=1800, public" </filesmatch>
Comments
Post a Comment