I'm a little confused here. I read some of the earlier questions on https caching but I didnt get a clear answer.
I've got a script sitting on: https://www.example.com/main.php
It generates an html page that refers to images/css/js resources sitting (relatively) at: /css /javascript /images /a/b/img2
How do I enable caching for these resources?? I have access to modifying the header output of the main.php script.
Edit: Solution as below:
#Set a far expiration date for components
<ifmodule mod_expires.c>
ExpiresActive On
<filesmatch "\.(jpg|jpeg|gif|png|css|js)$">
ExpiresDefault "access plus 6 months"
</filesmatch>
</ifmodule>
#add ETag for components
FileETag MTime Size