This example uses PHP header() calls to set cache control.
Some random number:Go back and forward using mouse context menu to see if this number changed, if so the cache was disabled successfully.
To avoid caching of static resources put some random query string when including js/css files, see for example:
<link href="css/style.css?r=<?php echo time(); ?>" rel="stylesheet" type="text/css" />