-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Old content is served #68
Comments
@koistya it's rendered and cached in memory. was this intended? |
@frankleng I would be surprised if it was: you need to restart a server manually with |
@zerkms true for dev. but it makes sense on production to have content live in RAM. |
You want to use React/JSX mostly for UI elements, but for the actual website content the more traditional format is more appropriate (plain text or HTML, Markdown, Jade etc.). Consider for example a huge privacy policy page, or an article, blog post, that kind of content usually comes from a database, but for simplicity it can be stored in files (.html, .md, .json etc.) |
@zerkms, @frankleng check it out, the browser now refreshes when you change content pages ( |
Fixes issue with website not reloading when content is changed. Closes kriasoft#68, kriasoft#69
When I change any
content/*.jade
file the old content is served untilgulp
server restart.Steps to reproduce:
Run
gulp
Change
src/content/index.jade
somehow (Eg: add some characters to any header)Notice there is
Check that
build/content/index.jade
actually changedExpected result: the rendered view in the browser should change
Actual result: it does not. Even refreshing the page does not help
PS: Both
http://localhost:5000/
andhttp://localhost:3000/
show the old contentThe same is reproducible with
gulp serve
. And running anrs
command (or a completenodemon
server restart) followed by a page refresh actually leads to the updated contents.Meanwhile changing styles works as expected (in both cases: with
serve
and live reload)Summary: everything from
styles
is updated fine,content
andtemplates
are not updated though.Reproducible in both
v0.3.0
and current masterb9b42223d568
Any ideas on why it could be like that?
The text was updated successfully, but these errors were encountered: