kolorobot / spring-mvc-quickstart-archetype

The project is a Maven archetype for Spring MVC web application.
http://blog.codeleak.pl
1.05k stars 478 forks source link

How add support mime type? #81

Closed pablogrela closed 9 years ago

pablogrela commented 9 years ago

When add glyphicon bootstrap appear this warning in console of javascript:

Resource interpreted as Font but transferred with MIME type text/plain: "http://localhost:8080/members/resources/fonts/glyphicons-halflings-regular.woff2".

kolorobot commented 9 years ago

Hm. I will need to investigate. This is strange.

pablogrela commented 9 years ago

Ok, thanks.

kolorobot commented 9 years ago

@pablogrela Not sure if I get this right. I just updated the Bootstrap and added glyphicons, because they were simply not there (https://github.com/kolorobot/spring-mvc-quickstart-archetype/commit/d0170b29d39635ee28bb3e0baaeb784e8ae4e192)

When I check in Chrome and Edge I see the font is properly returned.

Headers.

Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Length: 23424
Content-Type: application/x-font-woff; charset=UTF-8
Date: Wed, 19 Aug 2015 20:55:22 GMT
Expires: 0
Last-Modified: Wed, 19 Aug 2015 20:45:08 GMT
Pragma: no-cache
Server: Apache-Coyote/1.1
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Last-Modified: Wed, 19 Aug 2015 20:45:08 GMT
Content-Length: 18028
Date: Wed, 19 Aug 2015 20:52:23 GMT

Maybe you could provide some more information.

pablogrela commented 9 years ago

Sorry but I do not know.

Date: Wed, 19 Aug 2015 14:01:48 -0700 From: notifications@github.com To: spring-mvc-quickstart-archetype@noreply.github.com CC: pablogp_9@hotmail.com Subject: Re: [spring-mvc-quickstart-archetype] How add support mime type? (#81)

@pablogrela Not sure if I get this right. I just updated the Bootstrap and added glyphicons, because they were simply not there (d0170b2)

When I check in Chrome and Edge I see the font is properly returned.

Headers.

Edge:

Cache-Control: no-cache, no-store, max-age=0, must-revalidate

Content-Length: 23424

Content-Type: application/x-font-woff; charset=UTF-8

Date: Wed, 19 Aug 2015 20:55:22 GMT

Expires: 0

Last-Modified: Wed, 19 Aug 2015 20:45:08 GMT

Pragma: no-cache

Server: Apache-Coyote/1.1

X-Content-Type-Options: nosniff

X-Frame-Options: DENY

X-XSS-Protection: 1; mode=block

Chrome:

HTTP/1.1 200 OK

Server: Apache-Coyote/1.1

X-Content-Type-Options: nosniff

X-XSS-Protection: 1; mode=block

Cache-Control: no-cache, no-store, max-age=0, must-revalidate

Pragma: no-cache

Expires: 0

X-Frame-Options: DENY

Last-Modified: Wed, 19 Aug 2015 20:45:08 GMT

Content-Length: 18028

Date: Wed, 19 Aug 2015 20:52:23 GMT

Maybe you could provide some more information.

— Reply to this email directly or view it on GitHub.

kolorobot commented 9 years ago

Not confirmed.