cuinjune / PdWebParty

An app that allows Pd users to run patches in a web browser and share them with a web link
https://pdwebparty.herokuapp.com/
GNU General Public License v3.0
51 stars 4 forks source link

patch loaded into PdWebParty via URL is unchangeable #4

Open yannseznec opened 3 years ago

yannseznec commented 3 years ago

I imagine this may be an unchangeable thing that is due to servers or heroku or something, but...

I'm currently using PdWebParty mainly with GitHub. I push a new patch to a repo, get the raw URL, and then share it using the ?url= sharing method. However, if I change my patch, push the changes, and then reload the PdWebParty link, it stays in the state that it was at when I first generated that link. to make a new version I have to create a new filename (and thus a new link).

Is it at all possible to use the sharing system to create a link to a WebPdParty link that updates dynamically based on the most recent Pd Patch that it's referencing?

cuinjune commented 3 years ago

Hi @yannseznec That's weird. The patch should update as soon as you make change and upload it again. The app will basically read the ?url= link and dynamically load the file from the link every time. The app doesn't cache these files.

I'm not sure why that happened but I think it could be your Github repo taking some time to update the file, or you can also try clearing your browsing data.

yannseznec commented 3 years ago

Oh weird! The behavior you describe is exactly what I’d love to happen, but I could have sworn it wasn't working that way…I’ll test again.

On Apr 5, 2021, at 3:36 PM, Zack Lee @.***> wrote:

Hi @yannseznec https://github.com/yannseznec That's weird. The patch should update as soon as you make change and upload it again. The app will basically read the ?url= link and dynamically load the file from the link every time. The app doesn't cache these files.

I'm not sure why that happened but I think it could be your Github repo taking some time to update the file, or you can also try clearing your browsing data.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cuinjune/PdWebParty/issues/4#issuecomment-813604113, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAATDCXWR76P5LVFAUUAGZ3THIGLTANCNFSM42NADSHQ.

yannseznec commented 3 years ago

ok my mistake, this is definitely not a bug and is working fine. I must have been doing something dumb with my files.

yannseznec commented 3 years ago

oh upon further testing I think your theory about browser caching is the answer - I think the browser will inconsistently load the latest version of the file. if I open a recently-changed patch in a new browser it loads the latest version.