I've up-to-date my .htaccess file to incorporate the next:

<FilesMatch ".(cssjs)$">

ExpiresDefault "access plus 30 daysInch


I'm attempting to tell the customer that css and js wont change for 30 days to allow them to cache they files.

I've 2 questions,

  1. Is likely to achieve things i want
  2. Since adding that i'm now obtaining a 500 error, the entire .htaccess file is below:

    <FilesMatch "*.(cssjs)$">
    ExpiresDefault "access plus 30 daysInch
    # BEGIN Compression (DEFLATE)
    <IfModule mod_deflate.c>
    # Enable compression
    AddOutputFilterByType DEFLATE text/css text/javascript application/x-javascript text/html ``text/plain text/xml image/x-icon
    <IfModule mod_setenvif.c>
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4.[678] no-gzip
    BrowserMatch bMSIE !no-gzip !gzip-only-text/html
    BrowserMatch bMSI[E] !no-gzip !gzip-only-text/html
    <IfModule mod_headers.c>
    # Make certain proxies deliver correct content
    Header append Vary User-Agent env=!dont-vary
    # Ensure proxies deliver compressed content properly
    Header append Vary Accept-Encoding
    # Finish Compression (DEFLATE)

Make certain ExpiresActive ON is placed inside your FilesMatch directive before ExpiresDefault.