Header 'Last-Modified' for HTML content

First, I’m sorry for my bad English.

The header ‘Last-Modified’ is removed from response both for static *.html files
and for content generated with PHP if its ‘Content-Type’ is ‘text/html’ (not for other content types).

So, what is your question?

Question? "Why?"
This is a little problem and not desired behavior. This affects the caching by browsers and search engines.

I think it has been removed for some security reasons, not sure though…

Hi @wisgest!

‘Content-Type’ is ‘text/html’ (not for other content types).

Please check out this topic to overcome this issue.

The header ‘Last-Modified’ is removed from response both for static *.html files

Not true. Please browse your HTML file, press F12, go to Network tab, press on request and check again :wink:

and for content generated with PHP

PHP scripts are used to generate dynamic content. Holding a “Last-Modified” date would be useless for them…