Closed Bug 878036 Opened 12 years ago Closed 12 years ago

Compress JSON/SVG for marketplace

Categories

(Cloud Services :: Operations: Marketplace, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hschlichting, Assigned: oremj)

Details

I ran pagespeed insights against the new fireplace marketplace a couple days ago. One thing I noticed is that neither the JSON nor SVG responses where being compressed. You should be able to reproduce this by going to https://developers.google.com/speed/pagespeed/insights and entering https://marketplace.firefox.com as the url. In the section about "Enable compression" there are currently URL's like: https://marketplace.firefox.com/api/v1/apps/search/featured/?cat=&lang=en&pro=40.32.1 https://marketplace.firefox.com/api/v1/apps/category/?lang=en&pro=40.32.1 and: https://marketplace.cdn.mozilla.net/media/fireplace/img/pretty/cat-icons-blue.svg?1369948328 https://marketplace.cdn.mozilla.net/media/fireplace/img/pretty/stars_small.svg?1369948328 I'm not sure at which level of the stack gzip compression actually happens for the web site and CDN. But if nginx is involved, an example config might be: gzip on; gzip_min_length 1100; gzip_comp_level 7; gzip_types text/html text/plain text/xml application/xml application/xml+rss text/css text/javascript application/javascript application/x-javascript application/json image/svg+xml font/truetype font/opentype application/vnd.ms-fontobject text/x-component; gzip_http_version 1.0; gzip_proxied any; gzip_vary on;
Assignee: server-ops-amo → oremj
Added compression to marketplace.f.c and marketplace.cdn.m.n. The non-CDN compression is live now. The CDN compression will be live in about an hour.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Component: Server Operations: AMO Operations → Operations: Marketplace
Product: mozilla.org → Mozilla Services
You need to log in before you can comment on or make changes to this bug.