Skip to content

Fix importmap cache sweeper path#1693

Merged
thatbudakguy merged 1 commit intomainfrom
importmap-cache-sweeper
Nov 14, 2025
Merged

Fix importmap cache sweeper path#1693
thatbudakguy merged 1 commit intomainfrom
importmap-cache-sweeper

Conversation

@thatbudakguy
Copy link
Member

Without this fix, propshaft would generate new digest filenames
every time you change a JS file in development, which would
cause the browser to 404 when requesting the new file when
you reloaded. This would only be resolved by restarting the
rails server.

Now, if you change a JS file in local dev and reload, the browser
importmap will pick up the new path to the file.

Without this fix, propshaft would generate new digest filenames
every time you change a JS file in development, which would
cause the browser to 404 when requesting the new file when
you reloaded. This would only be resolved by restarting the
rails server.

Now, if you change a JS file in local dev and reload, the browser
importmap will pick up the new path to the file.
@github-actions
Copy link

Demo app download link: https://github.com/geoblacklight/geoblacklight/actions/runs/19349034476/artifacts/4562743988

  1. Download demo app and unzip file
  2. Change into app directory
    • run docker compose pull
    • run docker compose up
  3. Open in browser

@thatbudakguy thatbudakguy merged commit 31e8352 into main Nov 14, 2025
11 checks passed
@thatbudakguy thatbudakguy deleted the importmap-cache-sweeper branch November 14, 2025 07:00
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

Successfully merging this pull request may close these issues.

2 participants