php - Browser Caching problems -


i created shopping cart application after add items shopping cart products page , go cart page cart showing empty, after refresh product showing, think browser caching pages. there method fix issue, please me

note: used cakephp framework mvc

thanks

to prevent browser caching cart page, add 'no-cache' header;

disable browser-caching in cakephp 1.x

public function cart() {     $this->disablecache();     // rest of code here } 

disable browser-caching in cakephp 2.x

in cakephp 2.x 'disablecache()' method has been moved response-object

public function cart() {     $this->response->disablecache();     // rest of code here } 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -