[amo] Change Content-Type for .svg files to image/svg+xml

VERIFIED FIXED

Status

Infrastructure & Operations
WebOps: Other
VERIFIED FIXED
8 years ago
5 years ago

People

(Reporter: jbalogh, Assigned: oremj)

Tracking

Details

(Reporter)

Description

8 years ago
According to http://www.w3.org/TR/SVG/intro.html the MIME type for SVG is "image/svg+xml". We're serving it as text/xml. It appears that Firefox cares about the mimetype for svg. Long live XML!
(Reporter)

Updated

8 years ago
Blocks: 631072
(Assignee)

Updated

8 years ago
Assignee: server-ops → jeremy.orem+bugs
(Assignee)

Comment 1

8 years ago
Done for pnamo and in puppet. Prod will pick this up next time we run puppet.
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
https://addons-cdn.allizom.org/media/img/zamboni/mobile/arrow.svg

GET /media/img/zamboni/mobile/arrow.svg HTTP/1.1
Host: addons-cdn.allizom.org
User-Agent: Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en,en-us;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: https://addons-cdn.allizom.org/media/css/zamboni/mobile-min.css?build=073af1b

HTTP/1.1 200 OK
Server: Apache
X-Backend-Server: pm-app-amo24
Vary: User-Agent
Cache-Control: max-age=315360000
Content-Type: image/svg+xml

^^^

Verified FIXED
Status: RESOLVED → VERIFIED
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
You need to log in before you can comment on or make changes to this bug.