How to enable if modified since header on Ubuntu 14.04 server

Posted November 4, 2014 3.3k views

Hi everyone,

I would like to know how can I enable the if modified since header on mu Ubuntu 14.04 server, I have checked via and it clearly shows this feature is not enabled on my server.

The main reason I am curious to enable the feature is control the way search engines crawl my website.

Ankit Yadav

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

The if-modified-since conditional header is implemented by mod_cache for apache. While not enabled by default I believe it should be included by default and can be enabled with

a2enmod cache
a2enmod disk_cache

followed by an apache restart.