I'm trying to determine the mime type of a file. In Firefox, it shows text/cache-manifest. In Chrome, F-12 -> Network Tab it shows under type as document. When I view the response headers, it never shows Content-Type so maybe my server isn't sending it? Or am I interpreting document wrong?
In .htaccess, I have: AddType text/cache-manifest .manifest
EDIT: I have also tried the below code and it still shows type as document in Chrome:
manifest.php
<?php header("content-type: text/cache-manifest");?>
Network tab filters query based on request type, not mime type. As you request it as document (simple http get request in browser, not for example from image or styles tag), then it shows it as type=document. See https://developers.google.com/web/tools/chrome-devtools/network/reference for more info.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With