Rafał Wrzeszcz - Wrzasq.pl

Serving static content (CSS and JavaScript) with GZip

Saturday, 23 July 2011, 18:29

When you publish your project in production environment you usualy have some build tasks to be done for each release. For web projects it's good to take care about static contents there - mainly images, CSS and JavaScript. If your project is going to work under heavy load, one of the optimization field will be response size and time. While you will mainly look into your engine/application to shortnen it's response handling time, sometimes it may not be the case. The other point at which you should look is serving static content. Even when those files are stored on separated static server usualy one page load requires loading planty of additional static files. One of the good options is to compress them - smaller size means both smaller bandwidth and shorter loading time for clients.

Tags: Apache2, GZip, CSS, JavaScript, Server, Optimization, Production, .htaccess

» Komentarze