Cookies Flashcards
Four components of cookies
- Cookie header line of HTTP
response message - Cookie header line in next
HTTP request message - Cookie file kept on user’s
host, managed by user’s
browser - Back-end database at Web
site
What cookies can be used for:
- Authorization
- Shopping carts
- Recommendations
Cookies and privacy:
- Cookies permit sites to learn a lot about you
-> e.g., your name, address, e-mail, etc
What is the goal of web caches (proxy server)
Satisfy client request without involving origin server.
How does Web Cache work?
- User sets browser: Web
accesses via cache - browser sends all HTTP
requests to cache - if object in cache: cache
returns object - else cache requests object
from origin server, then
returns object to client
What else can be said about Web caching
Cache acts as both client and
server:
* Server for original requesting
client
* Client to origin server
Typically cache is installed by ISP
(university, company, residential
ISP)
Why Web caching?
▪ Reduce response time for client
request
▪ Reduce traffic on an institution’s
access link
▪ Internet dense with caches:
enables “poor” content providers
to effectively deliver content
Conditional GET
Goal: don’t send object if cache
has up-to-date cached version
* No object transmission delay
* Lower link utilization
▪ Cache: specify date of cached
copy in HTTP request
If-modified-since: <date>
▪ Server: response contains no
object if cached copy is up-todate:
HTTP/1.0 304 Not Modified</date>