Hi,
I want to send expiry headers along with my images.
This is the code in my .htaccess file
Code:
--------------------
...
#
RewriteCond $1 \.(gif|jpe?g|png|css|js|ico)$
# if the above request matches then go and get it
RewriteRule ^(.*) - [L,NC,QSA]
...
--------------------
But as well as sending the image out I would like to send an expiry
headers.
So I could change the query to something like...
Code:
--------------------
RewriteRule ^(.*) /myheader.php?r=$1 [L,NC,QSA]
--------------------
where my page 'myheader.php' would send the headers and then the image
out.
I know how to send headers, but i don't know of a php function to
'echo' the image/css.
Or maybe there is an other way, how would you send headers as well as
the image?
Many thanks
FFMG
--
'webmaster forum' (
http://www.httppoint.com) | 'Free Blogs'
(
http://www.journalhome.com/) | 'webmaster Directory'
(
http://www.webhostshunter.com/)
'Recreation Vehicle insurance'
(
http://www.insurance-owl.com/other/car_rec.php) | 'Free URL
redirection service' (
http://urlkick.com/)
------------------------------------------------------------------------
FFMG's Profile:
http://www.httppoint.com/member.php?userid=580
View this thread:
http://www.httppoint.com/showthread.php?t=41186
Message Posted via the webmaster forum
http://www.httppoint.com, (Ad revenue sharing).