• Like
  • Save
Highload осень 2012 лекция 3
Upcoming SlideShare
Loading in...5
×
 

Highload осень 2012 лекция 3

on

  • 278 views

 

Statistics

Views

Total Views
278
Views on SlideShare
271
Embed Views
7

Actions

Likes
0
Downloads
2
Comments
0

1 Embed 7

https://tech-mail.ru 7

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Highload осень 2012 лекция 3 Highload осень 2012 лекция 3 Presentation Transcript

    • • • • •
    • • • • • • • • •
    • • •
    • nginx.conf: location /b { expires 7d; alias /usr/local/www/static; } Response Headers: Cache-Control: max-age=604800 Expires: Fri, 05 Oct 2012 18:46:18 GMT Date: Fri, 28 Sep 2012 18:46:18 GMT • •
    • nginx.conf: location /d { add_header Cache-Control "private, no-cache, no-store"; } Response Headers: Cache-Control: private, no-cache, no-store • •
    • Request: GET /i/www/logo.png HTTP/1.1 Accept-Encoding: gzip,deflate Connection: keep-alive Host: img.yandex.net If-Modified-Since: Mon, 26 Apr 2010 08:00:35 GMT User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4 Response: 304 Not Modified Cache-Control: max-age=315360000 Connection: keep-alive Date: Fri, 28 Sep 2012 20:56:12 GMT Expires: Thu, 31 Dec 2037 23:55:55 GMT Last-Modified: Mon, 26 Apr 2010 08:00:35 GMT Server: nginx
    • GET / HTTP/1.1 Host: www.mail.ru Response Headers: Location: http://mail.ru/ • •
    • JavaScript: i = new Image(); i.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACA UwAOw==”; CSS: background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA UCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllP AAAAKJJREFUeNrMVIsOhSAI7aDd///eXvQYNmdI1Gy7bGeQKR4OFJi5a2nUNbbmC SFoZtF5aW78VxpCkQZvNISzZP6cITmagALWXpMhDGngZYgbjW9ZkqMRtZLVOBgb0 zo9mYZQYQlnwkvSoJRTS2aNzfk+PhgR1/cdK+woey4lWZRY/dtoZZWejbHhlPAnzYm ZT2u9IMihecMo2ONhwyTx4VcBBgCpVBSNAzaJLAAAAABJRU5ErkJggg==")
    • • • • • •
    • nginx.conf: http { keepalive_timeout 60; ... } Response Headers: Connection: keep-alive • •
    • nginx.conf: http { gzip on; gzip_static on; ... } Response Headers: Content-Encoding: gzip • • •
    • Response Headers: Transfer-Encoding: chunked Response Headers: Content-Length: 42432 • •
    • • • • •
    • • • • •
    • nginx.conf: location /w3c/p3p.xml {} location /w3c/policy.xml {} add_header P3P "policyref="/w3c/p3p.xml", CP="NOI DSP COR NID PSAo PSDo OUR BUS UNI NAV STA INT""; Response Headers: P3P: policyref="/w3c/p3p.xml", CP="NOI DSP COR NID PSAo PSDo OUR BUS UNI NAV STA INT • • •
    • • • •