Welcome Guest, Not a member yet? Register   Sign In
Enable Browser Caching in Codeigniter 3
#3

I had this issue happen to me recently when I migrated servers and upgraded CI. I tried your solution, but it didn't seem to behave the way my old environment behaved, so I settled on this alternate solution.

I added this to my view prior to loading the header:
<?php header_remove('Cache-Control');?>

That allowed apache httpd to resume handling the headers. I use the 'Expires' header (instead of Cache-Control) and 'Expires' was already configured in my web server.
Reply


Messages In This Thread
RE: Enable Browser Caching in Codeigniter 3 - by cisspGuy - 10-22-2019, 03:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB