on-internet
← Community

Jekyll build always generates cached CSS

Stack Overflow ·

Every time I run jekyll build for some reason the CSS is always cached. If I run jekyll serve --livereload the site builds with cached CSS then if I change a file, the live reload updates all of the CSS. Currently the only way to push updated code to my Netlify instance is to run jekyll serve --livereload, update a file and copy everything from the _site folder, which seems silly and counterintuitive. Plus my client would like to run jekyll build as they normally would. I have tried adding this: {% assign cacheVersion = site.time | date:'?v=%s' %} <link rel="stylesheet" href="{{ "/assets/css/s

Comments

Sign in or sign up to comment and upvote.

No comments yet.