-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fetching file contents from JavaScript does not return correct content #897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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. |
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. |
Nature of issue?
Found a bug
Steps to reproduce this bug:
async-file.js
)https://editor.p5js.org/<user_name>/sketches/<sketch_id>/async-file.js
async-file.js
async-file.js
and refresh (F5)This issue still occurs if all browser cache is disabled, or cleared, etc. The file content does not reflect the content in the editor.
The text was updated successfully, but these errors were encountered: