Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
1.17.13
Issue ID
ADDR-1905
Regression
No
Cache.expirationDelay does not remove expired Asset Bundles from the cache on the browser
1. Open the newest attached project "case_1311746-982799_expirationDelay.zip"
2. Switch platform to WebGL
3. In the Addressable Group tab, select Build > New Build > Default Build Script to build the asset bundles.
4. Build the WebGL player and named it WebGL
5. Copy the contents of the ServerData/WebGL/ folder generated from step 3 to the root of the WebGL player folder from step 4
6. Copy the entire WebGL folder to the webserver folder (for Windows, you can copy to xampp's htdocs folder)
7. Startup Firefox (or any other browser) and enter "localhost"
8. Clear the cache
9. Open Inspect Elements and navigate to Storage tab > IndexedDB > https://localhost > /idbfs > FILE_DATA.
10. Take a note of the TimeStamp
11. Go back to the Unity Editor and open up the SampleScene
12. Select the Cube prefab from the project window and increase the X scale to 2
13. Go to the Addressable Group tab and select Build > Update a previous build( It will request the addressables_content_state.bin file Select Assets/WebGL/addressables_content_state.bin file)
14. Once the build is done, go to the ServerData/WebGL folder. Please take note of the names of the two different asset bundles here(The new one from step 13 and the old one from step 3)
15. Copy the contents of this ServerData/WebGL to the root of the web server's WebGL folder
16. Look at the storage again
17. Notice that the old AssetBundle is still there
Expected result: The expiration delay should purge the asset bundles within the C# cache of the browser when its expiration time is over(Old Asset bundle is gone)
Current result: The expiration delay does not purge the asset bundles within the C# cache of the browser when its expiration time is over(Old Asset bundle is there)
Reproducible with: 2019.4.20f1, 2020.2.6f1, 2021.1.0b5, 2021.2.0a3
Unable to reproduce: 2018.4(Project breaking)
Note:
-The old AssetBundle will disappear if the cache is cleared
-Notice the newest edit field for more detailed steps and information
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
Resolution Note:
It turns out this is something that doesn't work correctly on many platforms, and fixing it is not viable at this time.
We will mark expiration delay as obsolete in addressables and the engine.