Webplayer unity3d file cache

Hi,

I am building a webplayer game. When I upload a new version of the .unity3d file this new version is not used but the old one is displayed.

I don’t know what is the problem, maybe a cache problem, and how to solve it.

Thanks a lot !

You have to make an apache directive (.htaccess or httpd.conf files) for the file type .unity3d so that it should always be revalidated. Something like:

Header unset Pragma
FileETag None
Header unset ETag

# cache file for 2 hours (7200s)
<FilesMatch "\.unity3d$">
    Header set Cache-Control "max-age=7200, public, must-revalidate"
    Header unset Last-Modified
</FilesMatch>

See: Speed Tips: Add Cache-Control Headers

hmmmm have you tried deleting the old build before building a new one