Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2015
    Location
    Nottingham, UK
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Add Expires Headers

    Hi there

    I have a query relating to the code I've added to my .htaccess file to 'Add Expires Headers' to try and improve my Yslow score.

    The code I added is;

    # BEGIN EXPIRES

    ExpiresActive On
    ExpiresDefault "access plus 10 days"
    ExpiresByType text/css "access plus 1 week"
    ExpiresByType text/plain "access plus 1 month"
    ExpiresByType image/svg+xml "access 1 month"
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType application/x-javascript "access plus 1 month"
    ExpiresByType application/javascript "access plus 1 week"
    ExpiresByType application/x-icon "access plus 1 year"

    # END EXPIRES

    When I check my Yslow score it's still giving me zero for 'Add Expires Headers' - Any idea how and why its doing this? (mod_rewrite and Gzip compression works ok)

    My URL is Wedding Photography in Nottingham & Derby - Matt Selby

    Apologies if this query isn't in the right place (searched the forum before posting but didn't find anything for Add Expires Headers)

    Thanks in advance

    Matt

  2. #2
    Banned
    Join Date
    Jul 2016
    Location
    25119 N. Aspen Grove Lane Colbert, WA 99005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ends headers tell the web browser whether they should demand a specific file from the web server or whether they should get it from the web browser's storage cache.


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •