Want to subscribe to topics you're interested in?
Become a Member

Weird caching problem

Discussion in 'Blogs & CMS usage' started by Stephen3000, Mar 19, 2021.

Tags:
  1. Stephen3000

    Stephen3000 New Member

    16
    0
    1
    May 3, 2019
    Ratings:
    +4
    Local Time:
    11:59 PM
    Hey guys,

    I have a weird caching problems for a couple of weeks now.

    The wordress admin dashboard gets cached somehow. If I deactivate a plugin and refresh the page the plugin still shows as installed.

    If I add an image to a post and hit publish, the post gets published but without the image. If I refresh the page then it shows up.

    I have no idea what's going on... I've tried deactivating all caching plugins on a staging version and it's still the same.

    Read on the WP forums that someone that the issue was with nginx conf:

    Code:
    add_header Pragma public;
           add_header Cache-Control "max-age=86400, public, must-revalidate, proxy-revalidate";
    In a hail marry attempt to solve this thinking that it was a server problem I went to update nginx, centimmod and PHP version. Only to have the server now dead somehow since after the update the sites aren't live anymore lol.

    Edit: ok servers now back up...I couldn't restart nginx without removing:
    location ~ ^/\.user\.ini {
    deny all;
    }

    from all the .conf files... no idea why but at least the nginx is working now.

    Any ideas what might cause this strange caching problem?
    Thanks
     
    Last edited: Mar 19, 2021
  2. eva2000

    eva2000 Administrator Staff Member

    46,426
    10,551
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,371
    Local Time:
    6:59 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    How was Wordpress installed ? via centmin.sh menu option 22 auto Wordpress install ? If so, which cache method did you use ? cache enabler, redis nginx cache, wp super cache ?

    If you did use centmin.sh menu option 22 but don't remember which cache method you used, you can check the centmin.sh menu option 22 log located in /root/centminlogs at /root/centminlogs/centminmod_*_wordpress_addvhost.log based log where * is the centminmod version and date timestamp. Don't post the log publicly as it has your login details etc. So just check for yourself to remind yourself what you selected.

    Example list /root/centminlogs files in date ascending order and grep for wordpress_addvhost.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep wordpress_addvhost.log
    

    example output returns log at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_wordpress_addvhost.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep wordpress_addvhost.log
    -rw-r--r--  1 root root 2.2M Oct 11 01:40 /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_wordpress_addvhost.log
    

    in SSH use cat to ouput contents of /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_wordpress_addvhost.log. Clear your SSH client window/buffer so only output is the contents of the file
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_wordpress_addvhost.log
    
     
  3. Stephen3000

    Stephen3000 New Member

    16
    0
    1
    May 3, 2019
    Ratings:
    +4
    Local Time:
    11:59 PM
    Hi,

    I've installed it via option 22 and super cache, just checked the logs.

    Prior to checking the logs I also tried commenting and uncommenting different cache settings in my domain.conf for example switched from super cache to cache enable, and viceversa.

    Also tinkered with cloudflare, and ofc removing all cache plugins (autoptimize + gzip, super cache, statically)

    Here's the headers for when I'm deactivating a plugin... on the screen it still shows active, only after refreshing page a couple of times it will show inactive...

    Code:
    Request URL: https://domainname.com/wp-admin/plugins.php?action=deactivate&plugin=antispam-bee%2Fantispam_bee.php&plugin_status=all&paged=1&s&_wpnonce=fa6432d219
    Request Method: GET
    Status Code: 302
    Remote Address:
    Referrer Policy: strict-origin-when-cross-origin
    alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
    cache-control: no-cache, must-revalidate, max-age=0
    cf-cache-status: DYNAMIC
    cf-ray: 6322c79b5a3-CDG
    cf-request-id: 08e9000000001
    content-type: text/html; charset=UTF-8
    date: Fri, 19 Mar 2021 01:03:14 GMT
    expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    expires: Wed, 11 Jan 1984 05:00:00 GMT
    location: https://domainname.com/wp-admin/plugins.php?deactivate=true&plugin_status=all&paged=1&s=
    nel: {"report_to":"cf-nel","max_age":604800}
    referrer-policy: strict-origin-when-cross-origin
    report-to: {"max_age":604800,"group":"cf-nel","endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report?s=AXg7TvKXQL05Q%2B9T"}]}
    server: cloudflare
    x-content-type-options: nosniff
    X-DNS-Prefetch-Control: off
    x-frame-options: SAMEORIGIN
    x-powered-by: centminmod
    x-redirect-by: WordPress
    x-xss-protection: 1; mode=block
    :authority: domainname.com
    :method: GET
    :path: /wp-admin/plugins.php?action=deactivate&plugin=antispam-bee%2Fantispam_bee.php&plugin_status=all&paged=1&s&_wpnonce=fa6432d219
    :scheme: https
    accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
    accept-encoding: gzip, deflate, br
    accept-language: en-US,en;q=0.9
    authorization: Basic x31223Random312jlk==
    cookie: autoptimize_feed=1; wordpress_sec_55a1wnOH7OV0dwc9PiOkIvWaAzZlv2Hu%7Cc8553f939907ef5d6d3208369cd7d518af; stly_tab=general; wordpress_test_cookie=WP+Cookie+check; _ga=GA1.2.112256.159693; cookieconsent_status=dismiss; prli_visitor=5f12542b; printfriendly-font-class=pf-12; __cfduid=d8a525; prli_click_3=semrush; cf_clearance=dbb9e550f2405965e9-1615247986-0-150; _gid=GA1.2.18309263.1615294509; _omappvp=nDtchh0lFF2novgK3rokuIOAQjOk; mo_success_NPOiydQVlZ=true; prli_click_18=bingads; prli_click_1=bluehost; prli_click_11=siteground; prli_click_27=sociallyviral; prli_click_26=adsense-theme; prli_click_41=ahead; wp-settings-1=imgsize%3Dfull%26libraryContent%3Dbrowse%26align%3Dcenter%26hidetb%3D1%26advImgDetails%3Dshow%26editor%3Dhtml%26urlbutton%3Dnone%26posts_list_mode%3Dlist%26post_dfw%3Doff; wp-settings-time-1=1616064453; wordpress_logged_in_416=S%7C1167d4750845; wfwaf-authcookie-e60edf1e=1%7Cadministrator%c878e9a0
    referer: https://domainname.com/wp-admin/plugins.php?plugin_status=all&paged=1&s
    sec-ch-ua: "Google Chrome";v="89", "Chromium";v="89", ";Not A Brand";v="99"
    sec-ch-ua-mobile: ?0
    sec-fetch-dest: document
    sec-fetch-mode: navigate
    sec-fetch-site: same-origin
    sec-fetch-user: ?1
    upgrade-insecure-requests: 1
    user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36
    action: deactivate
    plugin: antispam-bee/antispam_bee.php
    plugin_status: all
    paged: 1
    s:
    _wpnonce: fa6432d2
    
    I'm off to bed now since it's 3AM and haven't solved anything so far haha.

    Thanks,
    Stephen
     
  4. eva2000

    eva2000 Administrator Staff Member

    46,426
    10,551
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,371
    Local Time:
    6:59 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    To be honest I haven't looked at WP Super Cache in years as Cache Enabler and Redis nginx cache are better.

    CF header showing cf-cache-status: DYNAMIC means CF didn't cache the request so problem isn't at CF end.

    So it was working fine before these problematic weeks ?
    so you added more config settings to your domain nginx vhost since install ? any of those additions happen in the past few problematic weeks ?

    When you create a new nginx vhost domain via centmin.sh menu option 2 or menu option 22 or via /usr/bin/nv cli command line, you will create the Nginx vhost files and directories. You will get an outputted the path location where it will create the domain name's vhost conf file named newdomain.com.conf (and newdomain.com.ssl.conf if you selected yes to self signed SSL)
    • Nginx vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.conf
    • Nginx HTTP/2 SSL vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf
    • Nginx Self-Signed SSL Certificate Directory at /usr/local/nginx/conf/ssl/newdomain.com
    • Vhost public web root will be at /home/nginx/domains/newdomain.com/public
    • Vhost log directory will be at /home/nginx/domains/newdomain.com/log
    Please post the contents of /usr/local/nginx/conf/conf.d/newdomain.com.conf and if applicable /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf wrapped in CODE tags (outlined at How to use forum BBCODE code tags)

    what is output of these commands in ssh
    Code (Text):
    curl -I https://domain.com
    

    Code (Text):
    curl -I https://www.domain.com
    

    Code (Text):
    curl -I http://domain.com
    

    Code (Text):
    curl -I http://www.domain.com
    

    wrap output in CODE tags
     
  5. Stephen3000

    Stephen3000 New Member

    16
    0
    1
    May 3, 2019
    Ratings:
    +4
    Local Time:
    11:59 PM
    I think I had the problem for a while it's just the past few weeks I've been more active on working on the site (kinda forgot about it for many months).

    If I remember correctly I think I edited the conf files to make SSL or HTTP to > https work. Not sure though. Oh and yesterday to remove the user.ini to be able to restart nginx.

    .conf code:

    Code:
    # Centmin Mod Getting Started Guide
    # must read http://centminmod.com/getstarted.html
    
    # redirect from non-www to www
    # uncomment, save file and restart Nginx to enable
    # if unsure use return 302 before using return 301
    #server {
    #            listen   80;
    #            server_name domainname.com;
    #            return 301 $scheme://www.domainname.com$request_uri;
    #       }
    
    server {
     
      server_name domainname.com www.domainname.com;
    
    # ngx_pagespeed & ngx_pagespeed handler
    #include /usr/local/nginx/conf/pagespeed.conf;
    #include /usr/local/nginx/conf/pagespeedhandler.conf;
    #include /usr/local/nginx/conf/pagespeedstatslog.conf;
    
      #add_header X-Frame-Options SAMEORIGIN;
      add_header X-Xss-Protection "1; mode=block" always;
      add_header X-Content-Type-Options "nosniff" always;
      #add_header Referrer-Policy "strict-origin-when-cross-origin";
      #add_header Feature-Policy "accelerometer 'none'; camera 'none'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; payment 'none'; usb 'none'";
    
      # limit_conn limit_per_ip 16;
      # ssi  on;
    
      access_log /home/nginx/domains/domainname.com/log/access.log combined buffer=256k flush=5m;
      error_log /home/nginx/domains/domainname.com/log/error.log;
    
     include /usr/local/nginx/conf/autoprotect/domainname.com/autoprotect-domainname.com.conf;
      root /home/nginx/domains/domainname.com/public;
      # uncomment cloudflare.conf include if using cloudflare for
      # server and/or vhost site
      include /usr/local/nginx/conf/cloudflare.conf;
      include /usr/local/nginx/conf/503include-main.conf;
    
      #include /usr/local/nginx/conf/wpincludes/domainname.com/wpcacheenabler_domainname.com.conf;
      include /usr/local/nginx/conf/wpincludes/domainname.com/wpsupercache_domainname.com.conf;
      # https://community.centminmod.com/posts/18828/
      #include /usr/local/nginx/conf/wpincludes/domainname.com/rediscache_domainname.com.conf;
    
      location / {
      include /usr/local/nginx/conf/503include-only.conf;
     
    
      # Enables directory listings when index file not found
      #autoindex  on;
    
      # for wordpress super cache plugin
      try_files /wp-content/cache/supercache/$http_host/$cache_uri/index.html $uri $uri/ /index.php?q=$uri&$args;
    
      # for wp cache enabler plugin
      #try_files $cache_enabler_uri $uri $uri/ $custom_subdir/index.php?$args;
    
      # Wordpress Permalinks
      #try_files $uri $uri/ /index.php?q=$uri&$args;
    
      # Nginx level redis Wordpress
      # https://community.centminmod.com/posts/18828/
      #try_files $uri $uri/ /index.php?$args;
    
      }
    
    location ~* /(wp-login\.php) {
        limit_req zone=xwplogin burst=1 nodelay;
        #limit_conn xwpconlimit 30;
        auth_basic "Private";
        auth_basic_user_file /home/nginx/domains/domainname.com/htpasswd_wplogin;  
        include /usr/local/nginx/conf/php-wpsc.conf;
        # https://community.centminmod.com/posts/18828/
        #include /usr/local/nginx/conf/php-rediscache.conf;
    }
    
    location ~* /(xmlrpc\.php) {
        limit_req zone=xwprpc burst=45 nodelay;
        #limit_conn xwpconlimit 30;
        include /usr/local/nginx/conf/php-wpsc.conf;
        # https://community.centminmod.com/posts/18828/
        #include /usr/local/nginx/conf/php-rediscache.conf;
    }
    
    location ~* /wp-admin/(load-scripts\.php) {
        limit_req zone=xwprpc burst=5 nodelay;
        #limit_conn xwpconlimit 30;
        include /usr/local/nginx/conf/php-wpsc.conf;
        # https://community.centminmod.com/posts/18828/
        #include /usr/local/nginx/conf/php-rediscache.conf;
    }
    
    location ~* /wp-admin/(load-styles\.php) {
        limit_req zone=xwprpc burst=5 nodelay;
        #limit_conn xwpconlimit 30;
        include /usr/local/nginx/conf/php-wpsc.conf;
        # https://community.centminmod.com/posts/18828/
        #include /usr/local/nginx/conf/php-rediscache.conf;
    }
    
      include /usr/local/nginx/conf/wpincludes/domainname.com/wpsecure_domainname.com.conf;
      include /usr/local/nginx/conf/php-wpsc.conf;
     
      # https://community.centminmod.com/posts/18828/
      #include /usr/local/nginx/conf/php-rediscache.conf;
      include /usr/local/nginx/conf/pre-staticfiles-local-domainname.com.conf;
      include /usr/local/nginx/conf/pre-staticfiles-global.conf;
      include /usr/local/nginx/conf/staticfiles.conf;
      include /usr/local/nginx/conf/drop.conf;
      #include /usr/local/nginx/conf/errorpage.conf;
      include /usr/local/nginx/conf/vts_server.conf;
    }
    
    



    .SSL.conf code:

    Code:
    # Centmin Mod Getting Started Guide
    # must read http://centminmod.com/getstarted.html
    # For HTTP/2 SSL Setup
    # read http://centminmod.com/nginx_configure_https_ssl_spdy.html
    
    # redirect from www to non-www  forced SSL
    # uncomment, save file and restart Nginx to enable
    # if unsure use return 302 before using return 301
    # server {
    #   server_name domainname.com www.domainname.com;
    #    return 302 https://$server_name$request_uri;
    # }
    
    server {
      listen 443 ssl http2 reuseport;
      server_name domainname.com www.domainname.com;
    
      ssl_dhparam /usr/local/nginx/conf/ssl/domainname.com/dhparam.pem;
      ssl_certificate      /usr/local/nginx/conf/ssl/domainname.com/domainname.com.crt;
      ssl_certificate_key  /usr/local/nginx/conf/ssl/domainname.com/domainname.com.key;
      include /usr/local/nginx/conf/ssl_include.conf;
    
      # cloudflare authenticated origin pull cert community.centminmod.com/threads/13847/
      #ssl_client_certificate /usr/local/nginx/conf/ssl/cloudflare/domainname.com/origin.crt;
      #ssl_verify_client on;
      http2_max_field_size 16k;
      http2_max_header_size 32k;
      http2_max_requests 50000;
      # mozilla recommended
      ssl_ciphers ECDHE-EDITED;
      ssl_prefer_server_ciphers   on;
      #add_header Alternate-Protocol  443:npn-spdy/3;
    
      # before enabling HSTS line below read centminmod.com/nginx_domain_dns_setup.html#hsts
      #add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
      #add_header X-Frame-Options SAMEORIGIN;
      add_header X-Xss-Protection "1; mode=block" always;
      add_header X-Content-Type-Options "nosniff" always;
      #add_header Referrer-Policy "strict-origin-when-cross-origin";
      #add_header Feature-Policy "accelerometer 'none'; camera 'none'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; payment 'none'; usb 'none'";
      #spdy_headers_comp 5;
      ssl_buffer_size 1369;
      ssl_session_tickets on;
     
      # enable ocsp stapling
      #resolver 8.8.8.8 8.8.4.4 1.1.1.1 1.0.0.1 valid=10m;
      #resolver_timeout 10s;
      #ssl_stapling on;
      #ssl_stapling_verify on;
      #ssl_trusted_certificate /usr/local/nginx/conf/ssl/domainname.com/domainname.com-trusted.crt;
    
    # ngx_pagespeed & ngx_pagespeed handler
    #include /usr/local/nginx/conf/pagespeed.conf;
    #include /usr/local/nginx/conf/pagespeedhandler.conf;
    #include /usr/local/nginx/conf/pagespeedstatslog.conf;
    
      # limit_conn limit_per_ip 16;
      # ssi  on;
    
      access_log /home/nginx/domains/domainname.com/log/access.log combined buffer=256k flush=5m;
      error_log /home/nginx/domains/domainname.com/log/error.log;
    
      include /usr/local/nginx/conf/autoprotect/domainname.com/autoprotect-domainname.com.conf;
      root /home/nginx/domains/domainname.com/public;
      # uncomment cloudflare.conf include if using cloudflare for
      # server and/or vhost site
      #include /usr/local/nginx/conf/cloudflare.conf;
      include /usr/local/nginx/conf/503include-main.conf;
    
      #include /usr/local/nginx/conf/wpincludes/domainname.com/wpcacheenabler_domainname.com.conf;
      include /usr/local/nginx/conf/wpincludes/domainname.com/wpsupercache_domainname.com.conf;
      # https://community.centminmod.com/posts/18828/
      #include /usr/local/nginx/conf/wpincludes/domainname.com/rediscache_domainname.com.conf;
    
      location / {
      include /usr/local/nginx/conf/503include-only.conf;
     
    
      # Enables directory listings when index file not found
      #autoindex  on;
    
      # for wordpress super cache plugin
      try_files /wp-content/cache/supercache/$http_host/$cache_uri/index.html $uri $uri/ /index.php?q=$uri&$args;
    
      # for wp cache enabler plugin
      #try_files $cache_enabler_uri $uri $uri/ $custom_subdir/index.php?$args;
    
      # Wordpress Permalinks
      #try_files $uri $uri/ /index.php?q=$uri&$args;
    
      # Nginx level redis Wordpress
      # https://community.centminmod.com/posts/18828/
      #try_files $uri $uri/ /index.php?$args;
    
      }
    
    location ~* /(wp-login\.php) {
        limit_req zone=xwplogin burst=1 nodelay;
        #limit_conn xwpconlimit 30;
        auth_basic "Private";
        auth_basic_user_file /home/nginx/domains/domainname.com/htpasswd_wplogin;  
        include /usr/local/nginx/conf/php-wpsc.conf;
       
        # https://community.centminmod.com/posts/18828/
        #include /usr/local/nginx/conf/php-rediscache.conf;
    }
    
    location ~* /(xmlrpc\.php) {
        limit_req zone=xwprpc burst=45 nodelay;
        #limit_conn xwpconlimit 30;
        include /usr/local/nginx/conf/php-wpsc.conf;
       
        # https://community.centminmod.com/posts/18828/
        #include /usr/local/nginx/conf/php-rediscache.conf;
    }
    
    location ~* /wp-admin/(load-scripts\.php) {
        limit_req zone=xwprpc burst=5 nodelay;
        #limit_conn xwpconlimit 30;
        include /usr/local/nginx/conf/php-wpsc.conf;
       
        # https://community.centminmod.com/posts/18828/
        #include /usr/local/nginx/conf/php-rediscache.conf;
    }
    
    location ~* /wp-admin/(load-styles\.php) {
        limit_req zone=xwprpc burst=5 nodelay;
        #limit_conn xwpconlimit 30;
        include /usr/local/nginx/conf/php-wpsc.conf;
       
        # https://community.centminmod.com/posts/18828/
        #include /usr/local/nginx/conf/php-rediscache.conf;
    }
    
      include /usr/local/nginx/conf/wpincludes/domainname.com/wpsecure_domainname.com.conf;
      include /usr/local/nginx/conf/php-wpsc.conf;
     
      # https://community.centminmod.com/posts/18828/
      #include /usr/local/nginx/conf/php-rediscache.conf;
      include /usr/local/nginx/conf/pre-staticfiles-local-domainname.com.conf;
      include /usr/local/nginx/conf/pre-staticfiles-global.conf;
      include /usr/local/nginx/conf/staticfiles.conf;
      include /usr/local/nginx/conf/drop.conf;
      #include /usr/local/nginx/conf/errorpage.conf;
      include /usr/local/nginx/conf/vts_server.conf;
    }

    Code:
    curl -I https://domain.com
    HTTP/1.1 200 OK
    Date: Fri, 19 Mar 2021 01:43:37 GMT
    Content-Type: text/html; charset=UTF-8
    Connection: keep-alive
    Set-Cookie: __cfduid=dd6ff87548354ed149665b0dd414d06c41616118216; expires=Sun, 18-Apr-21 01:43:36 GMT; path=/; domain=.domain.com; HttpOnly; SameSite=Lax; Secure
    Vary: Accept-Encoding
    Link: <https://domain.com/wp-json/>; rel="https://api.w.org/"
    Link: <https://domain.com/wp-json/wp/v2/pages/8>; rel="alternate"; type="application/json"
    Link: <https://domain.com/>; rel=shortlink
    X-Powered-By: centminmod
    X-Xss-Protection: 1; mode=block
    X-Content-Type-Options: nosniff
    CF-Cache-Status: DYNAMIC
    cf-request-id: 08e9c00e330000f9f773b9c000000001
    Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report?s=vNFyH2JCV0f2CDi944hEKs9JW1UPwLlVu%2FtM288%2BTQThwHnklY9m%2B98vrWkohHtemtX%2FI%2FzgkM6enotCNwNAnx9KpFMKz6uuj64IxUZlPA%3D%3D"}],"group":"cf-nel","max_age":604800}
    NEL: {"max_age":604800,"report_to":"cf-nel"}
    Server: cloudflare
    CF-RAY: 632302c38f86f9f7-IAD
    alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
    Code:
    curl -I https://www.domain.com
    
    
    HTTP/1.1 301 Moved Permanently
    Date: Fri, 19 Mar 2021 01:44:07 GMT
    Content-Type: text/html; charset=UTF-8
    Connection: keep-alive
    Set-Cookie: __cfduid=df98c29a9d01268109ade4766e51046ed1616118246; expires=Sun, 18-Apr-21 01:44:06 GMT; path=/; domain=.domain.com; HttpOnly; SameSite=Lax; Secure
    X-Redirect-By: WordPress
    Location: https://domain.com/
    X-Powered-By: centminmod
    X-Xss-Protection: 1; mode=block
    X-Content-Type-Options: nosniff
    CF-Cache-Status: DYNAMIC
    cf-request-id: 08e9c0838f000026fb6d181000000001
    Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report?s=q4kArpNVUI2tkQqzsVfAsQYNj%2FNuCVjYAEKwSm3Bpu4d26Yahs5ibvHqXR5G9kYycBq1oWrl%2BEoyylWesa%2FuJLzD%2FN%2F02hqStsNMZ33cbzsNKQc%3D"}],"group":"cf-nel","max_age":604800}
    NEL: {"report_to":"cf-nel","max_age":604800}
    Server: cloudflare
    CF-RAY: 6323037f491626fb-MSP
    alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
    Code:
    curl -I http://domain.com
    
    HTTP/1.1 301 Moved Permanently
    Date: Fri, 19 Mar 2021 01:44:39 GMT
    Connection: keep-alive
    Cache-Control: max-age=3600
    Expires: Fri, 19 Mar 2021 02:44:39 GMT
    Location: https://domain.com/
    cf-request-id: 08e9c1052c0000384eb70c6000000001
    Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report?s=I9sxtngOx%2FbahyxuxMxDbglAe1HrUP11a%2FoPGI758FOolFz0ntKr7y9fYm5MwwSWXMuXRSnVDqkTOiT9viurM6I6%2FdH4SkBhLNCl9urLTA%3D%3D"}],"max_age":604800,"group":"cf-nel"}
    NEL: {"max_age":604800,"report_to":"cf-nel"}
    Server: cloudflare
    CF-RAY: 6323044eafd5384e-IAD
    alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
    Code:
    curl -I http://www.domain.com
    
    HTTP/1.1 301 Moved Permanently
    Date: Fri, 19 Mar 2021 01:45:15 GMT
    Connection: keep-alive
    Cache-Control: max-age=3600
    Expires: Fri, 19 Mar 2021 02:45:15 GMT
    Location: https://www.domain.com/
    cf-request-id: 08e9c1911e00000323151f3000000001
    Report-To: {"group":"cf-nel","endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report?s=yfCZgba2PbebVXj65cw5O%2FGdRtQC4yKYu66H%2BMTYsUVA%2F7sg7ef5ycnkmscV9dr2sUBinokyoX%2BdQl7rxMkJ%2FZGStVXsWuFKIRxe%2FASNrJdq%2FoA%3D"}],"max_age":604800}
    NEL: {"max_age":604800,"report_to":"cf-nel"}
    Server: cloudflare
    CF-RAY: 6323052e99760323-IAD
    alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
    Thanks,
    Stephen