How to prevent the browser from caching a json file

后端 未结 4 1686
野趣味
野趣味 2020-12-04 17:09

So I\'m making this little project and I\'m having some troubles with catching. One thing that\'s not working is the browser keeps caching the json file that contains save d

4条回答
  •  再見小時候
    2020-12-04 17:41

    One of my favorites is just htaccess (if this is possible for you, I can't see that)

    Disable cache for multiple extensions

    
        Header unset Cache-Control
    
    

    Disable cache for just 1 extension

    
        Header unset Cache-Control
    
    

    I found it here: http://www.queness.com/post/5421/17-useful-htaccess-tricks-and-tips

提交回复
热议问题