What is the purpose of the 'Cache-Control' HTTP header? MCQ with Answer and Explanation

What is the purpose of the 'Cache-Control' HTTP header?
A. To set the language of the content
B. To authenticate the user
C. To specify caching policies for the resource
D. To control the format of the response
Answer: Option C
Solution (By JKExamLibrary)
The Cache-Control header is used to define caching directives such as max-age, no-cache, and private, controlling how and for how long the resource can be cached.

This question belongs to: Computer Internet and Web Technologies

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Internet and Web Technologies Questions

Question #1 Report Error
Which protocol works at the network layer to transmit error alerts, status notifications, and network diagnostics data, heavily utilized by troubleshooting tools like 'Ping'?
A. UDP
B. ICMP (Internet Control Message Protocol)
C. TCP
D. HTTP

Correct Answer: Option B


Explanation:
ICMP (Internet Control Message Protocol) is used by network devices to send error messages and operational information, such as indicating that a requested host is unreachable.

This question belongs to: Computer Internet and Web Technologies
Question #2 Report Error
Which file is placed on a website's server to give instructions to search engine web crawlers about which paths and directories should not be scanned or indexed?
A. htaccess
B. robots.txt
C. sitemap.xml
D. index.html

Correct Answer: Option B


Explanation:
The robots.txt file is a standard text file used by websites to guide web robots and crawlers regarding which parts of the site they are allowed to index.

This question belongs to: Computer Internet and Web Technologies
Question #3 Report Error
What does the acronym WWW stand for in the context of the Internet?
A. World Wide Wireless
B. World Wide Web
C. Web World Wide
D. World Wide Work

Correct Answer: Option B


Explanation:
WWW stands for World Wide Web, which is an information system where documents and other web resources are identified by URLs and can be accessed via the Internet.

This question belongs to: Computer Internet and Web Technologies