Report this

What is the reason for this report?

How to enable if modified since header on Ubuntu 14.04 server

Posted on November 4, 2014

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 http://www.feedthebot.com/tools/if-modified/ 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



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.