Note that there are some explanatory texts on larger screens.

plurals
  1. POApache not sending Last-Modified header even if explicitly set
    primarykey
    data
    text
    <p>I have a problem with the Last-Modified header.</p> <p>I created a simple test page:</p> <pre><code>&lt;? header('Last-Modified: Thu, 14 Feb 2013 12:41:31 GMT'); ?&gt; </code></pre> <p>When I open this test page with my browser, if I check the headers there's no Last-Modified header. All the other standard headers are set correctly. Anyway, if I access the test page with https, the Last-Modified header is set.</p> <p>I also tried the same test on another server, and I can see the header correctly set even without https.</p> <p>So, what could block/unset the header on the first server? I'm not including the httpd.conf file because is very long. I'll just include the caching section, even if I don't see anything wrong or related to this problem:</p> <pre><code>ServerSignature Off ServerTokens Prod Header unset ETag FileETag None &lt;FilesMatch "(?i)^.*\.(ico|flv|jpe?g|png|gif|js|css).*$"&gt; Header set Cache-Control "public, no-transform" Header unset Vary: &lt;/FilesMatch&gt; &lt;IfModule mod_expires.c&gt; ExpiresActive On ExpiresDefault A2592000 ExpiresByType text/css "access plus 1 week" ExpiresByType text/plain "access plus 1 month" ExpiresByType image/gif "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType application/x-javascript "access plus 1 month" ExpiresByType application/javascript "access plus 1 month" ExpiresByType image/x-icon "access plus 1 year" &lt;/IfModule&gt; </code></pre> <p>Thanks in advance</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload