how to fix 304 – not modified error with wordpress?

Solution:

Status code 304 means that files was not modified since last load and browser can use it from local cache.To make sure the browser loads data we need to edit the .htaccess file for apache servers. you can access it via filemanager from Control Pannel.

  1. Take a backup of your htaccess file and website for safety
  2. Make sure to comment out or remove the contents of cache plugin (you may also see your old plugins data for me it was w3 total cache). just remove unnecessary cache data from .htaccess
    # BEGIN WP Rocket v3.10.7
        # Use UTF-8 encoding for anything served text/plain or text/html
        AddDefaultCharset UTF-8
        # Force UTF-8 for a number of file formats
        <IfModule mod_mime.c>
        .................
        </IfModule>
        # END WP Rocket