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

SSR: Site isn't updated when post change content #7

Open
Triloworld opened this issue Jan 8, 2018 · 3 comments
Open

SSR: Site isn't updated when post change content #7

Triloworld opened this issue Jan 8, 2018 · 3 comments

Comments

@Triloworld
Copy link

Tested on HTTPS with worker.
Try:
Edit post and check if site generated by server have it. Open homepage to check it.
Next try add more post without re-generate whole site. Refresh homepage - no change. Go to category page - new post visible. Back - new post visible. Refresh - no new post ;(

@srhise
Copy link
Owner

srhise commented Jan 12, 2018

Works for me. Are you sure your WP-API requests aren't cached?

@Triloworld
Copy link
Author

Triloworld commented Jan 12, 2018

I found why. Somebody need to remove this line:

console.log("Request to posts");

It will be compiled to return console.log, not promise object ;/ in SSR mode.

This is after you run "nuxt generate" somewhere in script.

getPosts:function(){var t=this;return console.log("Request to posts"),

@srhise
Copy link
Owner

srhise commented Jan 13, 2018 via email

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