4 ms·
If you serve this with: Content-Type: text/plain; charset=utf-8 You can actually have no HTML at all
by jonatron 3y ago
If you serve this with:
Content-Type: text/plain; charset=utf-8
You can actually have no HTML at all
- edent 3y agoI did try that, but a few mobile browsers seemed to choke without at least something vaguely HTMLish.
- devoutsalsa 3y agoI prefer “application/json”. The user can write their own interface.
- Lockal 3y agoWhat happens when server responds with text/plain and css? https://blog.openreplay.com/incorporating-css-to-a-page-via-http-headers/ https://blog.openreplay.com/incorporating-css-to-a-page-via-... (no time to check, only works in Firefox, but that's one idea on how to trick the system) Upd: checked and it works (e. g. add `Link: <https://unpkg.com/chota@latest https://unpkg.com/chota@latest>;rel=stylesheet;media=all`)