3 ms·
please don't call it server-side-rendering. The http server was always meant to respond with hypertext content. Serving json is the oddity, not the other way ar
by buboard 6y ago
please don't call it server-side-rendering. The http server was always meant to respond with hypertext content. Serving json is the oddity, not the other way around
- zzo38computer 6y agoFor document-oriented stuff, you can serve HTML or plain text. For data-oriented stuff, I think that it is not so wrong to serve JSON, CSV, RDF, SQLite database, or whatever format it is, although such things should not be hidden from the user (especially if scripts are disabled); this is independent of whether or not there is also a HTML version of the data (if so, the HTML could be generated either ahead of time or on demand; which is best may depend on the situation).