htaccess - How to force the client's browser to clear the cache?

前端 未结 12 1418
情歌与酒
情歌与酒 2020-12-07 14:23

For my site I have the following htaccess rules:

# BEGIN Gzip

AddOutputFilterByType DEFLATE text/text text/html text/plain tex         


        
12条回答
  •  甜味超标
    2020-12-07 14:57

    This worked for me.

    look for this:

        DirectoryIndex index.php
    

    replace with this:

        DirectoryIndex something.php index.php
    

    Upload and refresh page. You will get a page error.

    just change it back to:

        DirectoryIndex index.php
    

    reupload and refresh page again.
    I checked this on all of my devices and, it worked.

提交回复
热议问题