• Resolved Grzegorz.Janoszka

    (@grzegorzjanoszka)


    I am a happy user of this cache plugin, however I noticed that it doesn’t cache all http request headers. I have a plugin that adds some header entries starting with “Link: “.
    I noticed that when I take a page which is not in the cache, the link headers are there, but when the page comes from cache, the headers are missing.

    Example, a page which is not in the cache:

    HTTP/1.1 200 OK
    Server: nginx
    Date: Mon, 09 Jan 2017 11:41:36 GMT
    Content-Type: text/html; charset=UTF-8
    Transfer-Encoding: chunked
    Connection: close
    Vary: Accept-Encoding
    Link: here goes the data I spit

    exactly the same page but from cache:

    HTTP/1.1 200 OK
    Server: nginx
    Date: Mon, 09 Jan 2017 11:41:58 GMT
    Content-Type: text/html;charset=utf-8
    Transfer-Encoding: chunked
    Connection: close
    Vary: Accept-Encoding
    Cache-Control: public,max-age=600,s-maxage=600,must-revalidate
    Expires: Mon, 09 Jan 2017 11:51:36 GMT
    ETag: bac607c0c0636230c90ad792ca77b8fd
    Last-Modified: Tue, 03 Jan 2017 22:24:51 GMT

    As you see my headers are gone.

    Does the browser caches the page with the headers? I don’t think so.

    How can I have the link header displayed in the cache result as well?

    Thank you for your fantastic support!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author petermolnar

    (@cadeyrn)

    hi,

    which setup are you using, the via nginx? because it’s mentioned in the plugin at a few location this will happen.

    Thread Starter Grzegorz.Janoszka

    (@grzegorzjanoszka)

    Yes, I use nginx. In the meantime I stopped using your plugin and went straight to nginx cache. Not that your plugin is not good, but it still requires PHP to process lots of code, while nginx may do it a little bit faster.
    Can you see any reason to use your plugin and nginx cache?

    Plugin Author petermolnar

    (@cadeyrn)

    > Can you see any reason to use your plugin and nginx cache?

    Not anymore. When I wrote this, fastcgi_cache didn’t exist the way it does now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Header Link missing’ is closed to new replies.