• Resolved Raman

    (@allusefulinfo)


    From the date, I started using Litespeed cache plugin, the last-modified header went missing. Even I checked the .htaccess file in the file manager but I can’t see any rule to add last-modified header.

    Please help me fix this issue because it clearly seem that the issue is Litespeed cache related.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 18 total)
  • supervisior

    (@supervisior)

    This is a CloudFlare issue. CF doesn’t send this header, but if you change settings at CF you can select if headers from origin server should be used.

    Thread Starter Raman

    (@allusefulinfo)

    This doesn’t seem to be a cloudflare related issue because even on my another website allwpinfo.com where I don’t even use Cloudflare but use Litespeed Cache, the issue persists.

    I hope you can provide a permanent and trustworthy solution.

    supervisior

    (@supervisior)

    What kind of source do you check whether a last modified header exists?

    Thread Starter Raman

    (@allusefulinfo)

    I check with securityheaders.com

    • This reply was modified 1 year ago by Raman.
    supervisior

    (@supervisior)

    You don’t need any external tool to check headers. All you need is your browser, so just press F12 key at your keyboad. In network tab all headers are displayed. But my last question points to the kind of requested source. Response headers for the main document and static sources are different, so my question again to which source refers your check for last modified header?

    Thread Starter Raman

    (@allusefulinfo)

    I also checked in the browser, the results are same. Any URL on my blogs tatkaltech.com or allwpinfo.com, the last-modified header is missing.

    supervisior

    (@supervisior)

    Again, each page you request has a lot of different sources. The main document and static sources like images, JS, CSS and so on. The headers for main document are different as headers of static sources, but I think you mean headers of the main document, right?

    If a page uses a page cache like LiteSpeed LScache or the cache plugin then the data are not sent my PHP or WordPress. They are sent directly from the web server or the LScache cache engine. That is the reason why a cached page is much more faster. The last modified header is sent by PHP or WordPress, but as said the data are no longer send by WordPress/PHP if a URL is cached. Instead of last modified header LiteSpeed uses etag header. This kind of special header is similiar to the last modified header, but is not the same. This etag header is sent together with status code 304 if a URL is already requested before and prevents re-downloading the data again. In short, a last modified header is useless if a page cache is used, so you don’t need the last modified header.

    Thread Starter Raman

    (@allusefulinfo)

    The expires header, last modified header, and etag header are showing only on Image (static) files not on the main article pages. So, how can I set them on the article pages and homepage as well.

    supervisior

    (@supervisior)

    The expires header, last modified header, and etag header are showing only on Image (static) files not on the main article pages.

    Because you are using CloudFlare, so you have to ask CF support. Without CF all headers are set as expected.

    Thread Starter Raman

    (@allusefulinfo)

    Once again I am saying, I am not using Cloudflare on allwpinfo.com which is also my website and have the same issue.

    supervisior

    (@supervisior)

    This host is using CF: https://tatkaltech.com/
    At allwpinfo.com you are using Hostinger CDN and with this CDN it is the same cause.

    Plugin Support qtwrk

    (@qtwrk)

    the LiteSpeed Cache plugin does NOT add or edit or remove Last-Modified Header , and as far as I recall , by default wordpress doesn’t send it out either.

    Thread Starter Raman

    (@allusefulinfo)

    I have removed Cloudflare from my website tatkaltech.com but still etag header is not visible on homepage and other pages of the website. It is only visible on the static pages. Please check.

    supervisior

    (@supervisior)

    but still etag header is not visible on homepage

    etag header exists on main document. Check response headers, not request headers.

    Plugin Support qtwrk

    (@qtwrk)

    LiteSpeed Cache plugin does not add, edit or remove etag header either , your issue is seemingly more like a server-conf issue , please check with your hosting provider.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Last-Modified Header Missing’ is closed to new replies.