Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

If it is not, how do I enable it?

share|improve this question
1  
Enabled in what? Your question is lacking detail, please be specific. Are you perhaps talking about the HTTP feature? What web server are you talking about. Ubuntu has a dozen in the repositories. –  Zoredache Oct 21 '10 at 0:50

2 Answers 2

Your question is misleading - its got very little to do with Ubuntu. You don't say what webserver you are using - but its probably Apache. But even that is not much help - if-modified-since is a request header sent by a browser - do you mean that your browser (what browser?) running on Ubuntu doesn't send the header? Or that your webserver doesn't respond as expected? The browser will only make a conditional request (using if-modified-since) for content served with HTTP/1.1 caching information. Is the webserver issuing relevant caching instructions?

Even if you'd provided an accurate description of your problem, its worth bearing in mind that conditional requests often undermine performance rather than improving it. About the only exception to this is where the majority of your content is unusually large static files (e.g. audio and video files).

share|improve this answer

@JMan: Appears you're running Ubuntu (Lucid) and using Apache2 and PHP.

Also, this appears to be related to PHP, not Apache -- try Google "if-modified-since apache default php"

For related docs Google "Caching Guide - Apache HTTP Server" and select the version of Apache you are using.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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