I've installed lighttpd 1.4.33 /not mod_cache patched/ on Ubuntu 14+. I've put .html file with embedded .unity3d on server (unity3d file is somewhere 50+ Mb.)
lighttpd.conf do contain mod_expire
, mod_setenv
, mod_compress
. also, configuration do include following lines:
$HTTP["url"] =~ ".unity3d" {
expire.url = ( "" => "access plus 7 days" )
setenv.add-response-header += ("Cache-Control" => "public, must-revalidate")
}
Every time I open this page, unity3d application starts to download again, not just opening from cache.
Here is what curl -I shows:
HTTP/1.1 200 OK Cache-Control: public, must-revalidate, max-age=604800
Expires: Tue, 17 Mar 2015 05:13:51 GMT
Content-Type: application/vnd.unity
Accept-Ranges: bytes
ETag: "2535721273"
Last-Modified: Thu, 05 Mar 2015 12:39:07 GMT
Content-Length: 56645063
Date: Tue, 10 Mar 2015 05:13:51 GMT
Server: lighttpd/1.4.33
I did mention mime-type for unity3d files in proper config file.
Does anyone have experience or any thoughts on the issue?