Is there any method to call RESPONSE_CODE in http.conf file --> check if it is ="404" --> Disable cache for 404 ONLY..
P.S. I am using Apache 2.2.
For apache 2.4 I saw some help as below:
<IfModule mod_headers.c>
Header always unset ETag "expr=%{REQUEST_STATUS} == 404"
Header always set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" "expr=%{REQUEST_STATUS} == 404"
Header always set Pragma "no-cache" "expr=%{REQUEST_STATUS} == 404"
Header always set Expires "Wed, 11 Jan 1984 05:00:00 GMT" "expr=%{REQUEST_STATUS} == 404"
</IfModule>
Any help in apache 2.2 ?