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

前端 未结 12 1423
情歌与酒
情歌与酒 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:38

    You can force browsers to cache something, but

    You can't force browsers to clear their cache.

    Thus the only (AMAIK) way is to use a new URL for your resources. Something like versioning.

提交回复
热议问题