Recognition

Posts

6 Posts
  • Published Question

    How to set page cache expires to 7 days?

    I am using varnish with default magento 2.3.3 VCL and the default nginx configuration that comes with magento install. At present I see the expires is set to -1. How can I set expires to one week? status: 200 content...
    1 By riyaaaz Nginx
  • Published Answer

    Varnish stripping PHPSESSID from header

    Thanks you for responding. Below is the VCL file. # VCL version 5.0 is not supported so it should be 4.0 even though actual...
    By riyaaaz
  • Published Question

    Which part of the configuration file is nginx cache?

    I see two different blocks called Cache settings and File cache settings in the below conf file. Can anyone help differentiate what are these please? # Proxy settings proxy_redirect off; proxy_set_header Host ...
    1 By riyaaaz Nginx
  • Published Question

    More than one redirect with trailing slash in secure non-www url

    There is more than one redirect with trailing slash in secure non-www url. As you can see from below a secure non-www url is forwarded to a url with trailing slash and then again forwarded to one with no slash. I am r...
    0 By riyaaaz Nginx
  • Published Question

    Varnish stripping PHPSESSID from header

    It is a magento 2.3.3 site with PHP 7.3 and Varnish 6. It looks like varnish is stripping PHPSESSID. Is this normal behaviour or some workaround needs to be done in VCL code? This is how the curl request look like. PH...
    2 By riyaaaz Nginx Caching PHP
  • Published Question

    Remove trailing slash on URLs starting with 2 specific categories

    Using below if and rewrite function how can I remove trailing slashes on all URLs that is appended after /mens-wear and /womens-wear. Example /mens-wear/shirts/ ``` if (mens-wear, womens-wear) { rewrite ^/(.*)/$...
    1 By riyaaaz Nginx