Skip to content

Content/Mime Type, or BOM, of "squished" files #26

@dazbradbury

Description

@dazbradbury

We've experienced an intermittent bug that is, sadly, non-trivial to reproduce and only seems to impact "squished" CSS.

Essentially Chrome is caching one of our bundled css assets, produced by Squishit. The cached file suddenly stops being UTF-8, and is encoded as Windows-1252 instead.

As far as I can tell, SquishIt isn't modifying BOM or doing anything surprising. However, Squishit.S3 also doesn't have a way to ensure the content type is set to UTF-8 when uploading to S3, and there seems to be little mention of content / mime types generally as far as I can tell.

This bug feels very much to be a Chrome issue - however, I can't find a way to force the content / mime type of squishit bundled files to try and forcibly fix the issue.

Has anyone run into this issue before? Is there a way to force the content /mime type, or BOM, of bundled files?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions