bjorn.now

#web-dev

Building for the web, HTML, CSS, browsers, and static sites

02 December, 2026

To disable cache while developing on Safari:

  1. Open the Web Inspector
  2. Go to the Network tab
  3. Check the Disable Caches checkbox in the top-right corner

This will then be used only when the Web Inspector is open, so caching works normally when it’s closed.

To force a reload when the Web Inspector is closed, hit Command-Option-R.

08 October, 2025

Hugo’s resources.Get only finds files in assets/, not static/.

I kept my assets/resources in static/ and didn’t get why I always had to write /absolute/urls and use hope as a strategy, when I moved them into assets/ I could look up all my assets.

[… more]
til • • 1 min read • #hugo, #web-dev

30 September, 2025

Use :focus-visible instead of :focus, because it will only show when helpful.

:focus-visible only shows focus styling when the browser determines keyboard navigation is being used, unlike :focus which triggers on all interactions including mouse clicks.

[… more]
til • • 1 min read • #css, #web-dev

02 August, 2025

The <link rel="canonical" href="…"> is a bit like a correlation ID between services and I need also to have it on my canonical page, because if someone sends it with ?utm_source=foo it could be a different page than the one without the query string.

til • Singapore • #html, #web-dev