Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14348

Enable Browser Caching in Codeigniter 3

$
0
0
Hello,

after upgrading from CI 2 to CI 3 using http://www.codeigniter.com/userguide3/in...e_300.html as instruction, I'm currently having the following issue.

In CI 2 I could use the Back button of the browser to navigate to the last page. The page was fetched from Browser Cache, so text in a textarea is still there.
In CI 3, however, when pressing the Back button the page will be loaded from server.

I tried several things, but none seems to be working correctly.

- In HTML header, set meta tag with " cache-control max-age = 60 "
- Enabled webpage Caching (https://www.codeigniter.com/userguide3/g...ching.html). This caches the page, however, new posts in my forum won't be displayed this way.
- In config.php, changed "sess_driver" from database to files and enable "pconnect" + "cache_on" in database.php
- Disabled PHP boost in my STRATO control panel.


Do you have an idea how to solve this problem?

Viewing all articles
Browse latest Browse all 14348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>