How to set Cache Control Headers with httpd?

Solution Verified - Updated -

Issue

  • We would like to set the "Cache-Control" header to "no-cache, no-store" and set the "Expires" header to "0" at webserver level. Please let us know how this can be achieved.

Environment

  • Red Hat JBoss Core Services (JBCS) httpd
    • 2.4.29
    • 2.4.37
    • 2.4.51
  • Red Hat Enterprise Linux (RHEL) httpd
    • 7.x
    • 8.x
    • 9.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content