htaccess - Add an expires header to static resources

0 votes
123 views
added Jul 19, 2018 in Server issues by LC Marshal Captain (25,770 points)
# The below numbers are set for a month (in seconds), you can change them as you wish.

ExpiresActive On

ExpiresByType image/gif A2592000

ExpiresByType image/png A2592000

ExpiresByType image/jpg A2592000

ExpiresByType image/jpeg A2592000

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...