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 issues in SSR display old movies #120

Open
BioPhoton opened this issue Jul 11, 2022 · 4 comments
Open

Caching issues in SSR display old movies #120

BioPhoton opened this issue Jul 11, 2022 · 4 comments

Comments

@BioPhoton
Copy link
Member

No description provided.

@BioPhoton
Copy link
Member Author

I researched and figured out the version that is served id the prerendered version and not SSR.
also the caching settings for HTTP => 0 seconds therefore don't apply.

@BioPhoton
Copy link
Member Author

BioPhoton commented Jul 11, 2022

A possible solution to this issue is triggering the prerender script:

  • automat every [N] days
  • check for updates in the TMDB database and trigger the script based on this => maybe to frequent updates
  • a mix of both. Check every [N] days for DB updates and then re-render
  • SSR with edge cache

@eneajaho
Copy link
Collaborator

Hi @BioPhoton

One way to fix this is using ISR, as it will refresh cache based on a timer that we specify per route.
Or we can refresh the page cache with in-demand requests to the server.

Both of these things can be easily implemented if you use ngx-isr as it support for these two use-cases.

@BioPhoton
Copy link
Member Author

eneajaho/ngx-isr#43

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

No branches or pull requests

2 participants