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:
- Use
header()
method of PHP in your document to set a page expiration date
header('Expires: Fri, 1 Aug 1986 11:31:41 GMT');
- Use the
<meta>
portion of the html document to set caching
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
- Use the
<meta>
portion to set expiration of the page
<META HTTP-EQUIV="EXPIRES" CONTENT="Fri, 1 Aug 1986 11:31:41 GMT">
- 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.
精彩评论