YiiHaa Webdevelopment blog about Yii-framework and more

28Feb/1211

Serving large static files using Yii

Posted by Klaas

Earlier I explained how you can use X-SendFile to serve large static files more efficiently using PHP and Apache. Serving the files with PHP (and Yii) is really easy and I will explain how to do this after the break. 

16Feb/124

Serving (large) files

Posted by Klaas

Ever served large files with PHP? I bet you loved that! Do not worry, I have good news for you! There is a solution (or improvement, whatever you want to call it) to the old way of serving files, which used to look sort of like this:

13Feb/1215

Minify and merge your CSS and JavaScript

Posted by Klaas

It is good practice to optimize CSS and JavaScript for lower load time, it is never good to have a lot of <link ref="stylesheet" href="...> or <script src="...> tags in <head>.