I am gzipping my static Javascript and CSS files using PHP. When the original file is requested, the server sends the Last-Modified and ETag headers. I'm not sending these with PHP just yet. I've also seen suggestions to use Cache-control and Expires headers and some more that I don't remember.
Are those first two enough? I guess I can get the last modified date quite easily with PHP, but how would I generate an ETag?
If it's better to include the other two, what's the best way to attach those to other files like images? Maybe through .htaccess? (I don't have direct access to the server.)