Hands-on task
Compress the scripts and cache the icons
Before the shop launches, speed up how the frontend is served. In nginx on port 80: turn on gzip for JavaScript (app.js) and SVG (logo.svg), and put a Cache-Control header valid for at least 30 days on js, css and svg static files. The home page must still open.
- nginx
- gzip_types
- expires
- cache-control
- mime.types