Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
cache system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Jun 2011 at 09:21 UTC
Updated:
27 Jun 2011 at 08:19 UTC
Hi, I've just finished a drupal project and I'm going through optimization phase of the site. I've checked cache blocks and CSS and JS aggregation under performance for better load time . but something I noticed, when I run a page speed test or Yslow everything passes but Leverage browser caching. It seems like the expiry date is not set on all the images and css files. My question is do I have to edit .htaccess file or do I need to place the images and css files that are not cached into a particular folder?
Any help is appreciated, many thanks in advance
| Comment | File | Size | Author |
|---|---|---|---|
| Untitled-1.jpg | 426.53 KB | nino2armando |
Comments
Comment #1
lyricnz commentedComment #2
nino2armando commented@lyricnz , thanks for your reply. Can you Explain little bit more please, I'm not sure if I quiet get that.
Thanks
Comment #3
lyricnz commentedThese files are being served up directly by your webserver, without any involvement from Drupal. This is explained quite well by page-speed, and the Apache page referenced from there
http://code.google.com/speed/page-speed/docs/caching.html#LeverageBrowse...
http://httpd.apache.org/docs/2.2/caching.html
You may want to configure you web-server to provide some of these. Depending on it's configuration, it may provide last-modified information, so the browser can do exponential backoff etc.
Comment #4
nino2armando commented@lyricnz , Thanks A lot for your reply, I've tried all different settings on my .htaccess to set the expiry date on some of the CSS files and images but it doesn't seem to be working for me. I'm using page speed online which can be found here : http://pagespeed.googlelabs.com/ and here is the link to my site : http://backbone-design.com/
any suggestions
Many thanks in advance
Comment #5
nino2armando commented@lyricnz Thanks for all your help here is the configuration the I was looking for.
# 3 Month