3 ms·
The minimal spec valid HTML5 document is currently: <!DOCTYPE html> <title>a</title> Practically, browsers will accept omitting both of these, and the
by Macha 4y ago
The minimal spec valid HTML5 document is currently:
<!DOCTYPE html>
<title>a</title>
Practically, browsers will accept omitting both of these, and the spec even allows for omitting the title "if it is provided by a higher level protocol"
So it's not that crazy an argument that a plain text file is a html document
- LinAGKar 4y agoOnly because they've so comprehensively defined HTML parsing that even parsing random data has a well-defined result.
- deleted 4y ago[deleted]
- pests 4y agoToo technical. They serve websites to browsers for people to view. This file (be it properly formatted .html or .txt) is not a website people go to in their browser - its used internally by an application. This is the key point.
- kenmacd 4y agoYou're looking at it backwards though. CF doesn't _actually_ care about what the content is, only that they can apply their DDoS protections to it. If you're serving a text file that's much more difficult as they can't replace it with their own content.