Cookies Flashcards

1
Q

Four components of cookies

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What cookies can be used for:

A
  • Authorization
  • Shopping carts
  • Recommendations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Cookies and privacy:

A
  • Cookies permit sites to learn a lot about you
    -> e.g., your name, address, e-mail, etc
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the goal of web caches (proxy server)

A

Satisfy client request without involving origin server.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does Web Cache work?

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What else can be said about Web caching

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Why Web caching?

A

▪ 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Conditional GET

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly