question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

1.4.2 Bug: Disabling cache does not work when template7Pages are enabled.

See original GitHub issue

A This did not work

var myApp = new Framework7({
  // ...
  template7Pages: true,
  cache: false,
  cacheIgnore: ['/users/index', '/users/add', 'users/index', 'users/add'],
  // ...

B This however did work (‘solves’ the problem)

var myApp = new Framework7({
  template7Pages: false, // Why does this interact with caching?
  // ...
)}
myApp.params.cache = true; // could also be false to disable any caching
myApp.params.cacheIgnore = ['/users/index', '/users/add', 'users/index', 'users/add'];

Shouldn’t A and B have the same effect?

.

Additional code required for back link to force reloads
myApp.onPageAfterAnimation('*', function(page){
  $$('.view-main .page-on-left, .view-main .navbar-on-left').remove();
});

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
nolimits4webcommented, May 25, 2016

@ionas it is the issue with F7, not with docs 😃 I’ll check and fix it

0reactions
nolimits4webcommented, Mar 6, 2018

Issue is closed because of outdated/irrelevant/not actual/needed more information/inactivity.

If this issue is still actual and reproducible for latest version of Framework7, please create new issue and fill the issue template correctly:

  • Clearly describe the issue including steps to reproduce when it is a bug.
  • Make sure you fill in the earliest version that you know has the issue.
  • Provide live link or JSFiddle/Codepen or website with issue
Read more comments on GitHub >

github_iconTop Results From Across the Web

'Disable Caches' no longer on the Develop menu in Safari 11.0
There used to be a 'Disable Caches' option on the Develop menu, but it's no longer present in Safari 11.0. It's very useful...
Read more >
CORS issue only if we don't check "disable cache" in dev tools ...
Steps to reproduce the problem: 1. Request AWS cloudfront resource from js file. Shows CORS error. 2. Request same resource with "Disable cache" ......
Read more >
Disable Caching in Java 1.4.2 install or limit folder size
Does anyone know how to disable the caching in Java 1.4.2 during a silent install? I can't find any switches related to caching....
Read more >
Page caching and scrolling - General developer forum
David, do you know how to re-enable that functionality? Average of ratings: - ... Right now, page caching appears to be all-or-nothing.
Read more >
How to Enable or Disable Disk Write Caching in Windows
How to Enable or Disable Disk Write Caching in Windows Disk write caching is a feature that improves system performance by using fast ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found