Forcing reload of page using Framework7

Toby Allen picture Toby Allen · Dec 19, 2015 · Viewed 8k times · Source

I am building a small webapp based on framework7 example split-view-panel which has a navigation bar on the left and if you click it loads a url to the right hand pane.

This is a php url. However it seems that each time you click on the left, if the page has previously been loaded, it simply reloads from cache. However I need it to call the php page again as I need to log time data on the php page for when it was clicked and loaded.

Is there a way I can force Framework7 to reload pages it has previoulsy loaded via ajax?

Answer

Tim V picture Tim V · Dec 21, 2015

You can have Framework7 ignore certain URLs or even disable caching all together. Refer to the link below (section: Caching) for more details:

http://www.idangero.us/framework7/docs/init-app.html#.VnfJtPlVhHw