imp.el icon indicating copy to clipboard operation
imp.el copied to clipboard

Wrong mime type

Open ev00l opened this issue 12 years ago • 4 comments

When i enable impatient mode on a html buffer with an associated css file, the browser does not update when i change the css. If i enable impatient mode on the css file, the browser tries to update the html when the css is changed, but it is unable to use the css file, as the mime type is now text instead of css. I am not interested in previewing the css file in the browser, I just want html page to update when the css changes. Is this the intended behavior?

ev00l avatar Feb 03 '14 17:02 ev00l

Part of that is intended: I don't want the CSS to impact the live rendered HTML unless you enable impatient-mode on the CSS explicitly.

Not intended: Mime-types causing browser confusion. What browser are you using?

Patches welcome, btw. I'm interested in this but my "real-work" level is pretty high right now so a patch from me could take a while.

netguy204 avatar Feb 03 '14 20:02 netguy204

I am using google chrome, but firefox gave me the same result.

I am in no way capable of writing a patch en elisp :(

ev00l avatar Feb 03 '14 20:02 ev00l

Resource interpreted as Stylesheet but transferred with MIME type text/plain: "http://localhost:8080/imp/live/portfolio.html/style.css?1391461154830"

ev00l avatar Feb 03 '14 21:02 ev00l

The address is different than the live preview of the css file, which is: http://localhost:8080/imp/live/style.css/

So i guess it just gives the wrong mime type for some reason. I am in no way an expert in these subjects, so the problem might lie else where.

ev00l avatar Feb 03 '14 21:02 ev00l