ID:103188
 
Resolved
Using preload_rsc with a URL caused the resource .zip to be downloaded unnecessarily in cases where the URL was redirected, which confused the cache into thinking it did not have the file already.
BYOND Version:478
Operating System:Windows XP Pro
Web Browser:Firefox 3.5.13
Applies to:Dream Seeker
Status: Resolved (479)

This issue has been resolved.
Descriptive Problem Summary:
When playing a game with preload_rsc set to a URL, which downloads an external .zip file, the file is not cached properly if the URL was redirected to a new location.

Numbered Steps to Reproduce Problem:
1) Clear cache.
2) Create a game with a large resource file, package that file.
3) Place the resource file in a BYOND Member account, and set preload_rsc to the www.byond.com/members form of the download URL insted of the files.byondhome.com form.
4) Host the game and join it from the remote URL.
5) Exit the game, and join again. There should be two files in the cache directory the same size as the resource .zip, instead of just one, but http_cache.rsc will not grow larger the second time.

Expected Results:
The file should be recognized as cached in the second session.

Actual Results:
The file is downloaded twice.

When does the problem NOT occur?
If the file URL does not redirect, caching will work as intended.

Workarounds:
If available, use a non-redirecting form of the URL. If A redirects to B, use B instead.