How to set Expires header in JBoss EAP and Apache httpd

Solution Verified - Updated -

Issue

  • How to set expires header in Apache/JBoss config
  • Httpd web server 2.2.15 - Mod Expire not working. What is correct configuration for it?
  • We want the files to be sent with cache header so that the browser reuses the files from the cache
    If the browser is requesting for the static files to the server, we want the Apache httpd web server to serve these files and not the EAP server.

Environment

  • JBoss Enterprise Application Platform (EAP)

    • 4.2.0
    • 4.3.0
    • 5.x
    • 6.x
  • Apache httpd 2.2.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