Fixes #57 photo.php not caching. Also added instructions about mod_rewrite dependency in the readme.