htaccess - Add an expires header to static resources

0 votes
added Jul 19, 2018 in Server issues by LC Marshal Captain (25,790 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 - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.