MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
Cache static
Current time: 12-04-2020, 03:22 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cache static
11-23-2010, 12:05 AM
Post: #1
Cache static
Hello!
I am trying to implement CloudFront CDN with Custom Origin (CloudFront pulls the data from my web server). But when I test the page, I see this:
http://www.webpagetest.org/result/101122...on/cached/
I use Drupal and I put on the CDN the ImageCache files, generated from Drupal. I use Nginx instead of Apache, and php-fpm.
I've configured Nginx to set correct headers, but somehow this is not reflected by the CloudFront.
I use this directive to serve the images from Nginx:

# serve static files directly
location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|swf|flv)$ {
access_log off;
expires max;
add_header Cache-Control max-age=315360000;
}

But maybe this is not enough? From the graphic I see, that CloudFront don't get my Expire headers. Any advice is welcome! Thanks in advance!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Cache static - terko - 11-23-2010 12:05 AM
RE: Cache static - pmeenan - 11-23-2010, 12:21 AM
RE: Cache static - terko - 11-23-2010, 12:44 AM
RE: Cache static - pmeenan - 11-23-2010, 01:20 AM
RE: Cache static - terko - 11-23-2010, 03:04 AM
RE: Cache static - sajal - 11-23-2010, 07:30 AM
RE: Cache static - p83822 - 11-23-2010, 10:28 AM
RE: Cache static - pmeenan - 11-23-2010, 03:59 AM
RE: Cache static - terko - 11-23-2010, 10:21 PM
RE: Cache static - Bushido - 06-22-2011, 11:51 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)