Disabling Chrome cache for website development

后端 未结 30 1578
-上瘾入骨i
-上瘾入骨i 2020-11-21 06:49

I am modifying a site\'s appearance (CSS modifications) but can\'t see the result on Chrome because of annoying persistent cache. I tried Shift+refresh but it doe

30条回答
  •  遇见更好的自我
    2020-11-21 07:07

    I just got caught out but not necessarily due to Chrome.

    I am using jQuery to make AJAX requests. I had the cache attribute set to true in the request:

       $.ajax({
            type: 'GET',
            cache: true,
            ....
    

    Setting this to false fixed my problem but this is not ideal.

    I have no idea where this data is saved but I do know that chrome never hit the server for a request.

提交回复
热议问题