I have no idea how your internal systems work, but I'd look into the code
which sets the Content-Type header and see what could possibly set it to
null or not set it at all and then work back from there.

Some more data points for reproduction?

My css file is fairly large since I have one file for my entire site: ~143k
The file is nested in the war file. /war/css/main.css
The file is generated via a bunch of .less files and compiled with lessc.

jon


On Mon, Jan 9, 2012 at 5:20 PM, Ikai Lan (Google) <[email protected]> wrote:

> It sounds like the data about this XML snippet is still inconclusive.
>
> - Jon Stevens reports that if you change the extension to .css, it works
> - Matt, in addition to using Jon's fix to the fix, you needed to increment
> the version to fix the broken mime-type
>
> So it's possible the XML snippet might be a red herring and it's something
> in the deployment/version incrementing mechanism that fixes something about
> the file being in a bad state.
>
> Does anyone else have anything to report?
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> plus.ikailan.com | twitter.com/ikai
>
>
>
> On Mon, Jan 9, 2012 at 5:01 PM, Matthew Johnson <[email protected]
> > wrote:
>
>> Jon, FYI, this fix didn't work for me until I incremented the version
>> number. Then it worked great.
>>
>> Cheers,
>> Matt
>>
>>
>> On Jan 9, 2012, at 4:39 PM, Jon Stevens wrote:
>>
>> Just did that, redeployed and it didn't fix anything.
>>
>> Edited the part below to have  <extension>.css</extension> (adding a
>> period) and now the workaround to the workaround works.
>>
>> jon
>>
>>
>> On Mon, Jan 9, 2012 at 3:16 PM, Amy Unruh <[email protected]> wrote:
>>
>>> For those affected, it looks like a workaround is to add the following
>>> to your web.xml:
>>>
>>> <mime-mapping>
>>>  <extension>css</extension>
>>>  <mime-type>text/css</mime-type>
>>> </mime-mapping>
>>>
>>> On Mon, Jan 2, 2012 at 3:19 PM, Jon Stevens <[email protected]> wrote:
>>>
>>>> Well, it seems it isn't just me, so I just filed a ticket:
>>>>
>>>> http://code.google.com/p/googleappengine/issues/detail?id=6655
>>>>
>>>> Please star it.
>>>>
>>>> jon
>>>>
>>>>
>>>> On Sun, Jan 1, 2012 at 8:13 PM, Carter Maslan <[email protected]>
>>>> wrote:
>>>> > we had the same problem and it was solved by updating the css file
>>>> (with a space) and pushing again (without an app version change).
>>>>  Appreciate any info you find on preventing this problem. It behaved as
>>>> though it was a problem in GAE's caching of static files.
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > On Dec 30, 2011, at 8:34 PM, jnamnath <[email protected]> wrote:
>>>> >
>>>> >> I got it working again by updating the version number in my
>>>> appengine-
>>>> >> web.xml and pushing the new version. Still have no idea what happened
>>>> >> here.
>>>> >>
>>>> >> -J
>>>> >>
>>>> >> On Dec 24, 4:48 pm, jon stevens <[email protected]> wrote:
>>>> >>> Hey there,
>>>> >>>
>>>> >>> I've got an app up on GAE-J that when I request a .css file, I get
>>>> back a
>>>> >>> Content-Type: null, which is causing Chrome/Safari to not render
>>>> the page
>>>> >>> correctly. Any ideas why this would happen? Here is an example of
>>>> what I
>>>> >>> see in the Chrome Developer Tools -> Network -> Headers. I tried
>>>> adding the
>>>> >>> mime-extension to the web.xml and that didn't do anything.
>>>> >>>
>>>> >>> Request URL:http://appid.appspot.com/css/gen/main.css
>>>> >>> Request Method:GET
>>>> >>> Status Code:200 OK
>>>> >>>
>>>> >>> Request Headers
>>>> >>> Accept:text/css,*/*;q=0.1
>>>> >>> Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
>>>> >>> Accept-Encoding:gzip,deflate,sdch
>>>> >>> Accept-Language:en-US,en;q=0.8
>>>> >>> Authorization:Basic sldkjf
>>>> >>> Cache-Control:max-age=0
>>>> >>> Connection:keep-alive
>>>> >>> Host:appid.appspot.com
>>>> >>> If-None-Match:"Cf2J0A"
>>>> >>> Referer:http://appid.appspot.com/
>>>> >>> User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2)
>>>> AppleWebKit/535.7
>>>> >>> (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
>>>> >>>
>>>> >>> Response Headers
>>>> >>> Cache-Control:public, max-age=600
>>>> >>> Content-Length:112490
>>>> >>> Content-Type:null
>>>> >>> Date:Sun, 25 Dec 2011 00:23:00 GMT
>>>> >>> ETag:"NfQmpA"
>>>> >>> Expires:Sun, 25 Dec 2011 00:33:00 GMT
>>>> >>> Server:Google Frontend
>>>> >>
>>>> >> --
>>>> >> You received this message because you are subscribed to the Google
>>>> Groups "Google App Engine for Java" group.
>>>> >> To post to this group, send email to
>>>> [email protected].
>>>> >> To unsubscribe from this group, send email to
>>>> [email protected].
>>>> >> For more options, visit this group at
>>>> http://groups.google.com/group/google-appengine-java?hl=en.
>>>> >>
>>>> >
>>>> > --
>>>> > You received this message because you are subscribed to the Google
>>>> Groups "Google App Engine for Java" group.
>>>> > To post to this group, send email to
>>>> [email protected].
>>>> > To unsubscribe from this group, send email to
>>>> [email protected].
>>>> > For more options, visit this group at
>>>> http://groups.google.com/group/google-appengine-java?hl=en.
>>>> >
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Google App Engine for Java" group.
>>>> To post to this group, send email to
>>>> [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected].
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/google-appengine-java?hl=en.
>>>>
>>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google App Engine for Java" group.
>>> To post to this group, send email to
>>> [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-appengine-java?hl=en.
>>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to
>> [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to
>> [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to