Validation
The following checks are executed by validate.sh for every framework subscribed to the static-h2 test. The HTTPS port (8443) must be responding before checks begin.
Content-Type headers
Verifies correct Content-Type headers for representative file types over HTTPS with HTTP/2:
GET /static/reset.css— expectsContent-Type: text/cssGET /static/app.js— expectsContent-Type: application/javascriptGET /static/manifest.json— expectsContent-Type: application/json
Note: text/javascript is accepted as equivalent to application/javascript per RFC 9239.
Response size
Requests GET /static/reset.css over HTTP/2 and verifies the response size is greater than 0 bytes. This confirms the server is actually serving file content, not empty responses.
404 for nonexistent file
Sends GET /static/nonexistent.txt over HTTP/2 and verifies the server returns HTTP 404.