Jump to content

HTTP Content-Type


Adlago

Recommended Posts

Posted

In test dareboost.com link load font awesome:.../applications/core/interface/font/fontawesome-webfont.woff2?v=4.7.0

is defined as a resource delayed loading page.

"No character set is specified in the HTTP headers of these resources. Determining the character set can speed up the display of pages in the browser.
Specifying the character set used by the page in the HTTP Content-Type header allows the browser to begin its analysis right away."

Any ideas how to solve this issue?

 

 

Posted

The correct Content-Type header for that file is "application/font-woff2" (being a binary file it has no character set). Use this tool to check if that's what you've got - if so, ignore the warning - if not, it's a server-side thing, ask your host how it can be sent properly.

Posted
30 minutes ago, Mark said:

The correct Content-Type header for that file is "application/font-woff2" (being a binary file it has no character set). Use this tool to check if that's what you've got - if so, ignore the warning - if not, it's a server-side thing, ask your host how it can be sent properly.

Where to put it ?

"Header set Content-Type application/font-woff2"

When placing in a htaccess->mod_headers.c , each load site downloads a file.

 

 

Posted

There must be another solution.
Now in http Content-Type header   contains a application/font-woff2, but in ACP - editing theme - list of template files and the ccs list is invisible. Content last open template is visible. Very strange.
Search solution continues.

Posted

Resolved
- this row is added to mod_header.c in htaccess file.

AddType application/font-woff2 .woff2

@MarkWhen tested with this tool, Content-type "application/font-woff2" does not appear.

But when online test GtMetrix Content-type "application/font-woff2" is in the header of this resource.

woff2.thumb.png.e6b88018ee92686ba16728d6c04364fa.png

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...