0

I want to enable caching for httpserver. For this I read some article which say to control Html meta tag with cache-control option. It is fine for and it can be done easily. But further article says to config the apache server. For reference see this link 'https://docs.fastly.com/guides/tutorials/cache-control-tutorial'. Now My question in this article there is one term call Apache Config, and I am using apache-tomcat for deployment. where is Apache config file in tomcat or is there any other way to config this.

1
  • I believe that article is taking about apache webserver ,you will need to route your request from webserver to tomcat. Check this question to understand difference
    – Panther
    Jul 23, 2015 at 6:59

1 Answer 1

0

Apache Config in the above tutorial refers to configuration of the Apache HTTP Server. Apache HTTP Server and Apache Tomcat is two different projects. To configure Expires and max-age of Cache-Control header in Apache Tomcat refer to this documentation of the ExpiresFilter

1
  • one more question. If I config the ExpriesFilter into tomcat and not use any cache-control in html page. will caching will work?
    – keepmoving
    Jul 23, 2015 at 7:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.