External Publication
Visit Post

Browser Development • Re: Pale Moon automatically requesting CSS and JS files after JSON responses. Bug?

Pale Moon forum - Forum index [Unofficial] June 13, 2026
Source

when asking for a json directly, like from https://testserver.palemoon.org/json/te ... point.json it does it correctly.

My guess is because the response headers are:

CODE:

HTTP/2.0 304 Not ModifiedX-Firefox-Spdy: h2date: Sat, 13 Jun 2026 17:32:01 GMTetag: "6a2d9190-84"last-modified: Sat, 13 Jun 2026 17:21:20 GMTserver: nginx

Which do not include content-type: application/json. I would guess that response header value is important?

Edit: Sorry! That was after a soft refresh after opening dev tools. The actual response headers are:

CODE:

HTTP/2.0 200 OKX-Firefox-Spdy: h2accept-ranges: bytescontent-length: 132content-type: application/jsondate: Sat, 13 Jun 2026 17:37:46 GMTetag: "6a2d9190-84"last-modified: Sat, 13 Jun 2026 17:21:20 GMTserver: nginx

So it seems the content-type: application/json pairing is present and the extra files are not requested. Very interesting...

And for comparison, here are the response headers from my site that do encounter the problem:

CODE:

HTTP/2.0 200 OKX-Firefox-Spdy: h2content-encoding: gzipcontent-security-policy: default-src 'self'; base-uri 'self'; object-src 'none'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: http: https:; frame-src 'self' https://www.youtube-nocookie.com;content-type: application/jsondate: Sat, 13 Jun 2026 17:40:35 GMTreferrer-policy: strict-origin-when-cross-originserver: Apachestrict-transport-security: max-age=31536000vary: Accept-Encodingvia: e13sx-content-type-options: nosniffx-frame-options: DENY

Discussion in the ATmosphere

Loading comments...