P5.js-web-editor: Fetching file contents from JavaScript does not return correct content

Created on 15 Mar 2019  路  9Comments  路  Source: processing/p5.js-web-editor

Nature of issue?

  • Found a bug

  • Steps to reproduce this bug:

  • Create a new project,
  • Add a new file (ex: async-file.js)
  • Edit that file with anything
  • Go to the file URL (using another tab), for example : https://editor.p5js.org/<user_name>/sketches/<sketch_id>/async-file.js
  • Go back to the editor and modify async-file.js
  • Save the whole project
  • Go back to the other tab displaying the content of async-file.js and refresh (F5)
  • The content has not changed.

This issue still occurs if all browser cache is disabled, or cleared, etc. The file content does not reflect the content in the editor.

help wanted high bug

All 9 comments

thanks for reporting! i am seeing this issue. i wonder what's going on here...

I added an URL GET parameter, and it seems to fix the problem. It is perhaps server caching?

i think it must be a serving caching issue.

As far as I can tell, it seems like the files are stored on AWS, and directly accessing a project file through GET URLs make an internal redirect to AWS. Is it possible that the content of the file is not correctly updated on the remote server? Or perhaps AWS performs caching on it's own there.

See project.controller.js

small, plaintext files are not stored on AWS but are instead stored in mongodb

I will take this @catarak , will try to investigate and fix

@siddhant1 If you're not working on this issue, may I take it up?

Still working on this :)

Fixed by #1234.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BlinfoldKing picture BlinfoldKing  路  3Comments

meiamsome picture meiamsome  路  4Comments

maartenwijntjes picture maartenwijntjes  路  3Comments

catarak picture catarak  路  5Comments

runemadsen picture runemadsen  路  5Comments