Bypass service worker for attachment + inline-image fetches

Fixkamo-internal
Ya
16 Mei 2026, 00:07 UTC
Mwandishi
kamo
Ahadi ya
dace042

Clicking an <a download> attachment row navigated to the file instead of downloading it. The email service worker was intercepting every /api/email/* GET, including binary streams, and returning the response via respondWith — Chrome treats SW-synthesized responses differently from network responses for download-attribute clicks, so the browser opened the file in-page instead of saving it. Pasting the same URL into a new browser worked because it bypassed the worker. Skip SW interception for **************** and **************** so the browser handles them natively. Inline images still get cached via the backend's Cache-Control: max-age=3600.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei