Banner
Views: 845,130,016
Time:
6 users online:  BanjoN64Fan, Bensalot, Katrina, MaiK, Nirv, PyraDante - Guests: 32 - Bots: 91 Users: 46,476 (2,733 active)
Latest: jaiydin
Tip: Don't put a coin over a question block. It will create an invisible solid block above the ? block if the block is hit first.Not logged in.
Updating a file to the documents section after submission with the same name does not update the file
Forum Index - Valley of Bowser - Site Questions & Feedback - Issue Tracker - Updating a file to the documents section after submission with the same name does not update the file
Tags:
Pages: « 1 »
I've stumbled a bug where MajorFlare reported an error with my status bar tutorial (done moderated already) that after submitting it and is “waiting in moderation”, editing that submission and reuploading the updated zip file with the same file name does not update the zip file when downloading that file.

--------------------
Give thanks to RPG hacker for working on Asar.
that's because of cloudflare's overly aggressive caching. possible solutions:
1) decouple file id's from submission id's and assign each uploaded version a different file id, and include said file id in the download url
2) ?v=2 like you already do for stylesheets (might break shitty downloaders like wget which don't realize query strings aren't part of the filename)
3) include a dummy segment in the download url which is incremented each time the file is changed (kinda a mix of #1 and #2)
4) wipe cache every time someone overwrites a file (extremely hacky and i'm not sure you even can wipe a single cache entry from cloudflare)
Originally posted by randomdude999
4) wipe cache every time someone overwrites a file (extremely hacky and i'm not sure you even can wipe a single cache entry from cloudflare)

https://api.cloudflare.com/#zone-purge-files-by-url (# links on this site seem to not work, so you may want to search for Purge Files by URL)

Note that purging cache after using that API usually takes 30 seconds or so.

I think `?v=2` approach is reasonable myself.

--------------------
Legacy ports zip (now that those went down because Dropbox)
Pages: « 1 »
Forum Index - Valley of Bowser - Site Questions & Feedback - Issue Tracker - Updating a file to the documents section after submission with the same name does not update the file

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2020 - SMW Central
Legal Information - Privacy Policy - Link To Us


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy