开发者

browser REALLY slow in updating changes i html

开发者 https://www.devze.com 2023-03-21 02:38 出处:网络
I\'m using wamp, developing using php, jquery with including html-files on events. But when i do changes in an included html-document, the browser doesn\'t get the changes. Restarting wamp, aptana or

I'm using wamp, developing using php, jquery with including html-files on events. But when i do changes in an included html-document, the browser doesn't get the changes. Restarting wamp, aptana or the browser won't help. When I manually go into the www folder, I can see the changes. Only when 开发者_开发问答I open everything like the next day, the updates are there. Very frustrating!


A few solutions:

  1. Use header() method of PHP in your document to set a page expiration date
    header('Expires: Fri, 1 Aug 1986 11:31:41 GMT');
  2. Use the <meta> portion of the html document to set caching
    <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
  3. Use the <meta> portion to set expiration of the page
    <META HTTP-EQUIV="EXPIRES" CONTENT="Fri, 1 Aug 1986 11:31:41 GMT">
  4. Use CTRL+F5 when you visit the page and force a hard refresh.

Assuming it is just your browser caching information.


The best development environment I've found is Chrome's incognito mode.

Ctrl+Shift+N from a chrome window will open a new window that doesn't have caching, cookies, or history.

0

精彩评论

暂无评论...
验证码 换一张
取 消