[Solved] Please help me in setting up expire headers.

kan3

Active Member
#1
Hello,

Please kindly help me in setting up the expire headers.


I want expire headers for,

text/css
text/javascript
application/javascript
application/x-javascript
application/x-shockwave-flash
image/gif
image/jpg
image/jpeg
image/png
image/ico
image/icon

I want to set the period to 7 days.


Thank you.
 

kan3

Active Member
#3
Thank you for your swift reply.

Will this be correct syntax?


text/css=A604800, text/javascript=A604800, application/javascript=A604800, application/x-javascript=A604800, application/x-shockwave-flash=A604800, image/gif=A604800, image/jpg=A604800, image/jpeg=A604800, image/png=A604800, image/ico=A604800, image/icon=A604800



Thank you.
 

NiteWave

Administrator
#9
the server's expire setting can be overridden by vhost or .htaccess or php script

no problem found on the setting you posted.

please check .htaccess or httpd.conf, if

ExpiresActive off

exists.
 

kan3

Active Member
#10
This is what I saw in httpd.conf,

<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-gzip .tgz
AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddHandler cgi-script .cgi
AddHandler type-map var
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType video/x-ms-asf .avi
AddType video/mpeg .mpg
AddType video/mpeg .mpeg
AddType video/quicktime .mov
AddType video/x-ms-wmv .wmv
</IfModule>


Does this helps or should I post the whole httpd.conf file?

Thank you.
 
Top