Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by MaT227 · Oct 19, 2012 at 01:19 PM · webplayercache

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 !

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Kryptos · Oct 19, 2012 at 01:38 PM 0
Share

Clean the cache of your web browser.

avatar image MaT227 · Oct 19, 2012 at 01:42 PM 0
Share

I know that if I clean the cache I get the new version but is there an automatic way of doing this fur the user. I mean if it's the new version don't use the cached one.

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Kryptos · Oct 19, 2012 at 01:51 PM

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: http://www.askapache.com/htaccess/apache-speed-cache-control.html

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MaT227 · Oct 19, 2012 at 02:14 PM 0
Share

Thanks a lot I will look for that, can I do that on the html webplayer page meta ? like this ?

meta http-equiv="cache-control" content="no-cache, must-revalidate"

avatar image Kryptos · Oct 19, 2012 at 02:16 PM 0
Share

$$anonymous$$aybe I don't know. It is better to do it on the server side.

avatar image
0

Answer by lil_billy · Oct 19, 2012 at 01:36 PM

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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

WWW Request runs in Editor but not in Webplayer 1 Answer

How does the webplayer caching work? 2 Answers

When using WWW.LoadUnityWeb() does the target remains in the browser cache? 0 Answers

Unity Webplayer and Dlls 1 Answer

Yield return request never returns 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges