Skip to content
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

Caching Problems #178

Open
martinheidegger opened this issue Jun 26, 2023 · 8 comments
Open

Caching Problems #178

martinheidegger opened this issue Jun 26, 2023 · 8 comments

Comments

@martinheidegger
Copy link
Member

The current way how the website is deployed (static site on github with data source in /public) is not refreshing correctly on the website, sometimes new events flash up on the events page as well as new images. We need to change the deployment system.

@kinxiel
Copy link
Collaborator

kinxiel commented Jun 27, 2023

Maybe we should move to purely client side fetching.

@martinheidegger
Copy link
Member Author

martinheidegger commented Jun 27, 2023 via email

@kinxiel
Copy link
Collaborator

kinxiel commented Jun 27, 2023

You mean completely build it as pure static site?

@coliff
Copy link
Member

coliff commented Jun 27, 2023

not sure what the exact problem is (haven't encountered any issues while browsing the site on my PC, Mac, iPad or iPhone) but could caching issues be resolved at the Cloudflare level? I don't quite understand why the 'deployment system' would need to be changed.

@kinxiel
Copy link
Collaborator

kinxiel commented Jun 27, 2023

I also have not on Mac and iOS using Vivaldi, Chrome and Safari, but can imagine this kind of thing happening. What browser did you find this issue on?

@kinxiel
Copy link
Collaborator

kinxiel commented Jun 27, 2023

Is this what you mean?

image

Not sure why it only occurs for that Programming Night Event.

@martinheidegger
Copy link
Member Author

@coliff vite uses a mixed "SSR" and live data loading concept I think. The build process for the files currently builds all event pages as html sites but when the site is loaded it also seems to go to the /public folder to load the latest events which is a problem if they are out of sync but what happens at my computer is that sometimes it shows briefly the new event list before deciding to show an outdated Event list. An extremely weird behavior (which is not same as in the screenshot, needs to be shown in a movie).

I think to fix this we have three options.

  1. Do not load any dynamic data in the deployed site and just keep the old data.
  2. Use a different hosting system that supports dynamic urls (to have proper event urls) which I would kind of like
  3. Change the build task to exclusively load the latest data from /public in the client only (no files generated during deploy). This would break current event urls and I think it may be a bad approach in general.

@kinxiel
Copy link
Collaborator

kinxiel commented Jun 29, 2023

OK I think, I see what you mean. On the latest merge (update Nuxt to 3.4.4). For a very brief instant I see the TBA event on refreshing the page, which is weird since it was showing up normally when I tested locally before merging and also before merging.

Curious what would happen if you pushed new data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants