Prevent your CSS and Javascript files from being cached

Sometimes you just don’t want your CSS or Javascript files to be cached. That’s why I use the following code snippit to prevent this.

Sometimes you just don’t want your CSS or Javascript files to be cached. For instance, I don’t feeling like having to explain to a customer how to disable their cache during the development of their new website whenever they have early access or want to take a peek and don’t see the desired changes I already implemented, just because they have some greedy cache setting. Continue reading “Prevent your CSS and Javascript files from being cached”

APC vs. Memcached

In this article I compare APC and Memcached. Two caching methods I studied for a PHP MVC Framework I constructed for a client.

A while ago I was asked to develop a PHP MVC framework from scratch with hooks for caching. After building the MVC framework I decided to take a look at the two preferred caching methods, Memcached and APC, for this particular framework. Below you’ll find some reasons why you should choose the one or the other. Continue reading “APC vs. Memcached”