Learn about Centmin Mod LEMP Stack today
Register Now

I think I might have a Cache issue.

Discussion in 'System Administration' started by Itworx4me, Jan 1, 2021.

  1. Itworx4me

    Itworx4me Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    4:31 AM
    Nginx 1.27.4
    MariaDB 10.6.21
    When viewing my site I sometime don't get all the information loaded to the page. I am thinking this is a cache issue? If so, how does one go about finding the problem?


    Thanks,
    Itworx4me
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,911
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    9:31 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    First thing is to check your page's HTTP response headers via browser dev tools network tab > doc type and also via curl in SSH
    Code (Text):
    curl -I https://yourdomain.com/page/
    

    also check if using Cloudflare if a cache purge fixes it or check if Nginx and PHP-FPM restart via shortcut command = nprestart fixes it.
     
  3. Itworx4me

    Itworx4me Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    4:31 AM
    Nginx 1.27.4
    MariaDB 10.6.21
    Code (Text):
    HTTP/1.1 404 Not Found
    Date: Sat, 02 Jan 2021 00:53:18 GMT
    Content-Type: text/html; charset=utf-8
    Connection: keep-alive
    Set-Cookie: __cfduid=dc80b436f6a68d9bf9aae6c52373504bd1609548798; expires=Mon, 01-Feb-21 00:53:18 GMT; path=/; domain=.*******.com; HttpOnly; SameSite=Lax
    X-Frame-Options: SAMEORIGIN
    X-Content-Type-Options: nosniff
    Last-Modified: Sat, 02 Jan 2021 00:53:18 GMT
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: private, no-cache, max-age=0
    Vary: Accept-Encoding
    Set-Cookie: xf_csrf=p3gfmnHOWPXo2bR7; path=/; secure
    X-Powered-By: centminmod
    X-Xss-Protection: 1; mode=block
    X-Content-Type-Options: nosniff
    CF-Cache-Status: DYNAMIC
    cf-request-id: 07622eb0390000119dec81c000000001
    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=gyXqtui3SofNEobd%2Bmpxbc8LFAGS2%2Figj27ejxMtJgs2G8lz2ZxWBKW5YpBwgxBLF4cJdMP5BhoM9gZ4FMZkCK%2FByCERuru4bDwpc%2BbOFw%3D%3D"}],"group":"cf-nel","max_age":604800}
    NEL: {"report_to":"cf-nel","max_age":604800}
    Server: cloudflare
    CF-RAY: 60b080938db3119d-MIA
     
  4. Itworx4me

    Itworx4me Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    4:31 AM
    Nginx 1.27.4
    MariaDB 10.6.21
    Also got this from the console: sitemap:1 Failed to load resource: the server responded with a status of 404 ()