Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter tavakal4devs

    (@tavakal4devs)

    this is the website
    https://eepir.ru/
    running on apache

    • This reply was modified 2 years, 6 months ago by tavakal4devs.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @tavakal4devs

    Thank you for reaching out and I am happy to assist you with this.
    I’ve checked your website and I can see that the static files do have a Last-modified header, however, the HTML does not.
    You stated that the website is running on Apache, but I am seeing Server: nginx/1.18.0 (Ubuntu)
    Can you please confirm you are using Ngixn+Apache? In this case, the last modified may be handled by Nginx, and you should bypass the Nginx to respect the Origin headers.
    Also, please confirm that the option “Set Last-Modified header” is also enabled in the Performance>Browser Cache>HTML&XML section.

    Thanks!

    Thread Starter tavakal4devs

    (@tavakal4devs)

    Can you please confirm you are using Ngixn+Apache?
    yes correct

    confirm that the option “Set Last-Modified header” is also enabled in the Performance>Browser Cache>HTML&XML
    yes it’s on

    you should bypass the Nginx to respect the Origin headers.
    could you please tell me how exactly to do this?

    ps: on my localhost everything is fine

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @tavakal4devs

    Thank you for yoru feedback.
    As I can see, and please confirm, your website is hosted with this hosting provider?
    Check the Performance>Install section of W3 Total Cache. If the rules are for apache, then you should check the nginx. conf in the root of your host and see if there are some rules that may conflict.
    I would advise just reaching out to your hosting provider and asking them to bypass the Nginx rules to apache.
    I hope this helps!

    Thread Starter tavakal4devs

    (@tavakal4devs)

    Yes this is the provider

    I found a (ssi on) line in the etc/nginx/vhosts/

    dose this effect somehow?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @tavakal4devs

    Thank you for the feedback.
    The ngx_http_ssi_module module is a filter that processes SSI (Server Side Includes) commands in responses passing through it.
    As you can see in this guide if ssi_last_modified on
    Allows preserving the “Last-Modified” header field from the original response during SSI processing to facilitate response caching.

    By default, the header field is removed as contents of the response are modified during processing and may contain dynamically generated elements or parts that are changed independently of the original response.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Last-modified header is not send’ is closed to new replies.