You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In HTTP/HTTPS standalone server mode, It looks like issuing a HEAD to a document under static root returns the full document, and omits Content-type. Issuing a GET to a static doc also omits Content-type.
This causes problems with IE as it rejects stylesheets not served with text/css as the mime-type unless in quirks/compatibility mode. In my situation, I need standards mode so canvas will work.
A normal request (non-static)
Escape character is '^]'.
HEAD / HTTP/1.0
HTTP/1.0 302 FOUND
Vary: Cookie
Content-Type: text/html; charset=utf-8
Location: http://dev.shieldcore.com/logout/
A static HEAD request
Escape character is '^]'.
HEAD /static/css/style.css HTTP/1.0
HTTP/1.0 200 OK
Content-Length: 19123
Last-Modified: Sat, 27 Oct 2012 02:02:45 GMT
/* Color Schemes */
.H2O1804 a { color: #FF9A00; }
A static GET request
GET /static/css/style.css HTTP/1.0
[pid: 26280|app: 0|req: 23/44] 192.168.56.101 () {20 vars in 248 bytes} [Fri Oct 26 19:27:39 2012] GET /static/css/style.css => generated 19123 bytes in 0 msecs via sendfile() (HTTP/1.0 200) 2 headers in 88 bytes (0 switches on core 0)
HTTP/1.0 200 OK
Content-Length: 19123
Last-Modified: Sat, 27 Oct 2012 02:02:45 GMT
/* Color Schemes */
.H2O1804 a { color: #FF9A00; }
The log entry:
[pid: 26280|app: 0|req: 17/37] 192.168.56.101 () {20 vars in 249 bytes} [Fri Oct 26 19:22:35 2012] HEAD /static/css/style.css => generated 19123 bytes in 0 msecs via sendfile() (HTTP/1.0 200) 2 headers in 88 bytes (0 switches on core 0)
The text was updated successfully, but these errors were encountered:
My bad... I had a corrupt mime.types file. Fixed that and the Content-type: is now set correctly. Still sending full content on head tho. Not terribly critical.
In HTTP/HTTPS standalone server mode, It looks like issuing a HEAD to a document under static root returns the full document, and omits Content-type. Issuing a GET to a static doc also omits Content-type.
This causes problems with IE as it rejects stylesheets not served with text/css as the mime-type unless in quirks/compatibility mode. In my situation, I need standards mode so canvas will work.
A normal request (non-static)
A static HEAD request
A static GET request
The log entry:
The text was updated successfully, but these errors were encountered: