but why? no need to use php for static files, they are already cached by the browser (at least images, js and css are) (if the file is generated by PHP then by definition it'...
do you know "occam's razor"? sometimes, overcomplicated solutions are counterproductive