Skip to content

CSS/JS does not get updated when updating via "New content available" banner #2786

Description

@mattpopovich

Checklist

How did you create the site?

Generated from chirpy-starter

Describe the bug

It seems like every time I update chirpy versions, my site / the PWA stays cached locally (even after pressing "update" to new content available). Pressing update does not fix things. The images show "loading" animations (shimmer from left to right). Some CSS/JS is broken. The only way to fix it is to force refresh.

Maybe pressing update only brings in new posts? And the CSS/JS stays cached?

Example screenshot after updating my site from chirpy 7.3.1 to 7.6.0. Notice the mode-toggle buttons rendering as a plain bulleted text list instead of styled icons, plus the image stuck mid-shimmer (hard to tell from screenshot):
Image

Loading it in an incognito window:
Image

You can't tell from this screenshot but I also updated the favicon whenever I upgraded to 7.6.0 and the new icon is not present in the cached version of the website.

Steps To Reproduce

  • Generate website from chirpy-starter at v7.3.1
  • Load website in browser
  • Upgrade website to v7.6.0
    • git fetch chirpy-starter --tags where chirpy-starter points to git@github.com:cotes2020/chirpy-starter.git
    • git merge v7.6.0
  • Load website in browser, see cache issues (image shimmering, favicon not updated, mode-toggle buttons rendering as plain bulleted list)

Expected Behavior

Clicking the "Update" button whenever there is new content available would bring in the new content (text posts) as well as anything else that changed.

Environment

  • Ruby: ruby 3.1.6p260 (2024-05-29 revision a777087be6) [aarch64-linux]
  • Jekyll: jekyll 4.4.1
  • Chirpy: 7.6.0

Anything else?

The screenshot shows some console errors when loading the page.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions