Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How view mime type in Chrome? It's showing "document" under "Network" tab

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");?>
like image 542
Don Rhummy Avatar asked Sep 15 '25 01:09

Don Rhummy


1 Answers

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.

like image 151
Olga Rondareva Avatar answered Sep 17 '25 19:09

Olga Rondareva