duanshan1856 2019-06-10 14:25
浏览 551

清除Chrome DevTools中的浏览器缓存时是否可以避免时间限制?

I am doing some local PHP development and therefore i frequently need to clear the browser cache (I am using Chrome). This has previously been pretty straight forward either in the DevTools or via a plugin for convenience (I am using Cache Killer). However, in the current Chrome (Version 75.0.3770.80) there seems to be a time constraint no matter what I do. Neither the plugin nor Chrome itself seem to be able to bypass this constraint. That is, if I edit a PHP file and need to update the browser to let the changes take effect, I have to wait – say a minute – before updating will also clear the cache. This is frustrating, to put it mildly. Right clicking the reload button and selecting “Empty Cache and Hard Reload” does not bypass the time constraint. I would be grateful if someone knows how to bypass it. Thanks.

  • 写回答

1条回答 默认 最新

  • dongtuo7364 2019-06-10 14:31
    关注

    If Ctrl + F5 or Cmd + F5 (Mac) doesn't work out, what I do to clear the cash complety is to go over the settings in Chrome, search for cookies, under Site Configurations, Cookies and them a manually delete the cookie 127.0.0.1 or localhost. That will kill php session, so any saved value in session will be lost, as PHP use session cookies. If you really want to even clear everything, you can also go on the session defined folder and remove the session files stored there.


    When i update a JavaScript file, it usually does not load right away with my new modification, so I usually have to open it on DevTools and do a ctrl + F5 on the file.

    评论

报告相同问题?

悬赏问题

  • ¥15 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计
  • ¥15 路易威登官网 里边的参数逆向
  • ¥15 Arduino无法同时连接多个hx711模块,如何解决?
  • ¥50 需求一个up主付费课程
  • ¥20 模型在y分布之外的数据上预测能力不好如何解决
  • ¥15 processing提取音乐节奏
  • ¥15 gg加速器加速游戏时,提示不是x86架构
  • ¥15 python按要求编写程序
  • ¥15 Python输入字符串转化为列表排序具体见图,严格按照输入