ioweb-gr commented on issue #1897: URL: https://github.com/apache/incubator-pagespeed-mod/issues/1897#issuecomment-968974811
I myself read the Varnish article and I wanted to note that I'm not using varnish. Just nginx as reverse proxy to apache. Regarding the headers for the url I'm viewing request headers are ``` HTTP/2 200 OK server: nginx content-type: text/html; charset=UTF-8 x-powered-by: PHP/7.4.25 x-magento-cache-control: max-age=86400, public, s-maxage=86400 x-magento-tags: cat_c,cat_c_3,cat_c_49,cat_c_7,cat_c_12,cat_c_54,cat_c_61,cat_c_372,cat_c_853,cat_c_1014,store,cms_b,cms_b_footer-all,cat_c_p_54,cat_p_129993,cat_p,cat_p_129500,cat_p_119921,cat_p_121195,cat_p_118932,cat_p_118933,cat_p_118994,cat_p_118930,cat_p_118931,cat_p_118993,cat_p_119207,cat_p_113823,cat_p_111868,cat_p_98893,cat_p_96700,cat_p_96036,cat_p_96045,cat_p_96697,cat_p_96702,cat_p_96635,cat_p_96634,cat_p_96159,cat_p_96160,cat_p_96203,cat_p_96204,cat_p_96633,cat_p_99173,cat_p_94689,cat_p_107512,cat_p_93850,cat_p_93851,cat_p_91606,cat_p_108936,cat_p_90454,cat_p_82292,cat_p_76719,cat_p_74920,cat_p_71801,cat_p_128314,cat_p_92152,cat_p_71803,cat_p_128313,cat_p_101999,cat_p_66737,cat_p_66740,cat_p_66741,cat_p_62604,cat_p_61869,cat_p_98220,cat_p_98215,cat_p_53191,cat_p_52704,cat_p_52191,cat_p_54570,cat_p_52692,cat_p_49621,cat_p_49716,cat_p_49021,cat_p_49024,mobile,amasty_mega_menu,cms_b_etennis_greek_header_custom_block,cms_b_porto_category_side_custom_block,cms_b_porto_foo ter_bottom_custom_block,FPC pragma: no-cache x-magento-cache-debug: HIT x-content-type-options: nosniff x-xss-protection: 1; mode=block x-frame-options: SAMEORIGIN set-cookie: PHPSESSID=lub80ttmofa7l5cn2itrh7kecb; expires=Mon, 15-Nov-2021 15:30:07 GMT; Max-Age=3600; path=/; domain=subdomain.example.com; secure; HttpOnly; SameSite=None set-cookie: X-Magento-Vary=c58cc7336841735bf5ef13185766282824a9d073; expires=Mon, 15-Nov-2021 15:30:07 GMT; Max-Age=3600; path=/; secure; HttpOnly; SameSite=None x-ua-compatible: IE=edge strict-transport-security: max-age=15768000; includeSubDomains x-powered-by: PleskLin date: Mon, 15 Nov 2021 14:30:07 GMT x-page-speed: 1.13.35.2-0 cache-control: max-age=0, no-cache, no-store X-Firefox-Spdy: h2 ``` I'm pretty sure cache-control header is sent by magento 2 itself without varnish. But we don't really want to cache the full pages themselves in the browser, we just need to serve optimized images and cache the static assets. That's why we add expires headers for images for example. Could you explain to me how the cache-control in the main page is interfering with pagespeed? ` x-magento-cache-control and x-magento-cache-debug headers` are there because this is a staging site in developer mode. They go away in production. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@pagespeed.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org