RE: Browser cache control ยป wt-3.3.0-disablecache.patch
wt-3.3.0/src/http/StaticReply.C Thu Jul 25 15:13:30 2013 | ||
---|---|---|
*/
|
||
Request::HeaderMap::const_iterator ua=request.headerMap.find("User-Agent");
|
||
if (ua == request.headerMap.end()
|
||
|| ua->second.find("MSIE") == std::string::npos) {
|
||
addHeader("Cache-Control", "max-age=3600");
|
||
addHeader("Cache-Control", "no-cache");
|
||
if (!etag.empty())
|
||
addHeader("ETag", etag);
|
||
addHeader("Expires", computeExpires());
|
||
} else {
|