Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Which of the following directive of Cache Con... Start Learning for Free
Which of the following directive of Cache Control Header of HTTP response indicates that resource is cachable by only client and server?
  • a)
    Public
  • b)
    Private
  • c)
    Nocache/nostore
  • d)
    Maxage
Correct answer is option 'B'. Can you explain this answer?
Verified Answer
Which of the following directive of Cache Control Header of HTTP respo...
Answer: b
Explanation: Private directive indicates that resource is cachable by only client and server, no intermediary can cache the resource.
View all questions of this test
Most Upvoted Answer
Which of the following directive of Cache Control Header of HTTP respo...
Private
The 'Private' directive of the Cache Control Header in an HTTP response indicates that the resource is cachable by only the client and server. This means that intermediate proxies, such as caching servers, are not allowed to cache the response.

Cache Control Header
The Cache Control Header is used in HTTP responses to specify caching directives for the resource being requested. It provides instructions to the client and intermediate caches on how to handle the response and cache the resource.

Directives in Cache Control Header
The Cache Control Header can include various directives to control caching behavior. Some commonly used directives include:
- 'Public': Indicates that the resource can be cached by any cache, including the client, server, and intermediate proxies.
- 'Private': Indicates that the resource is cachable by only the client and server, and should not be cached by intermediate proxies.
- 'No-cache': Indicates that the resource should not be served from cache without first revalidating it with the server.
- 'No-store': Indicates that the resource should not be stored in any cache, including the client, server, and intermediate proxies.
- 'Max-age': Specifies the maximum amount of time in seconds that the resource can be cached before it is considered stale.

Explanation of 'Private' Directive
The 'Private' directive is used when the resource contains sensitive or user-specific information that should not be cached by intermediate proxies. This directive ensures that the response is only cached by the client and server, preventing any potential privacy or security issues.

When the 'Private' directive is included in the Cache Control Header of an HTTP response, it instructs intermediate caches not to store a cached copy of the resource. Instead, the response is delivered directly to the client and stored in the client's cache if needed. This allows the client to re-use the cached response for subsequent requests without relying on intermediate caches.

By using the 'Private' directive, the server can have more control over the caching behavior of sensitive resources and ensure that they are not inadvertently cached by intermediate proxies. This directive helps in maintaining the privacy and security of the transmitted data.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Question Description
Which of the following directive of Cache Control Header of HTTP response indicates that resource is cachable by only client and server?a)Publicb)Privatec)Nocache/nostored)MaxageCorrect answer is option 'B'. Can you explain this answer? for Computer Science Engineering (CSE) 2025 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Which of the following directive of Cache Control Header of HTTP response indicates that resource is cachable by only client and server?a)Publicb)Privatec)Nocache/nostored)MaxageCorrect answer is option 'B'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Which of the following directive of Cache Control Header of HTTP response indicates that resource is cachable by only client and server?a)Publicb)Privatec)Nocache/nostored)MaxageCorrect answer is option 'B'. Can you explain this answer?.
Solutions for Which of the following directive of Cache Control Header of HTTP response indicates that resource is cachable by only client and server?a)Publicb)Privatec)Nocache/nostored)MaxageCorrect answer is option 'B'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Which of the following directive of Cache Control Header of HTTP response indicates that resource is cachable by only client and server?a)Publicb)Privatec)Nocache/nostored)MaxageCorrect answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Which of the following directive of Cache Control Header of HTTP response indicates that resource is cachable by only client and server?a)Publicb)Privatec)Nocache/nostored)MaxageCorrect answer is option 'B'. Can you explain this answer?, a detailed solution for Which of the following directive of Cache Control Header of HTTP response indicates that resource is cachable by only client and server?a)Publicb)Privatec)Nocache/nostored)MaxageCorrect answer is option 'B'. Can you explain this answer? has been provided alongside types of Which of the following directive of Cache Control Header of HTTP response indicates that resource is cachable by only client and server?a)Publicb)Privatec)Nocache/nostored)MaxageCorrect answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Which of the following directive of Cache Control Header of HTTP response indicates that resource is cachable by only client and server?a)Publicb)Privatec)Nocache/nostored)MaxageCorrect answer is option 'B'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev