Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Old Cache-Control header tag remove? #355

Closed
byazrail opened this issue Jan 4, 2017 · 1 comment
Closed

Old Cache-Control header tag remove? #355

byazrail opened this issue Jan 4, 2017 · 1 comment

Comments

@byazrail
Copy link
Contributor

byazrail commented Jan 4, 2017

Hello,
using set_header on codeigniter 3.x remove old cache-control tag.
This 4 version not working or little bug not solutions.

working code;
$this->response->removeHeader('Cache-Control')
->setHeader('Cache-Control', 'public, max-age=3600')
->setHeader('Pragma', 'cache');

response;
Cache-Control:no-store, no-cache, must-revalidate
Cache-Control:public, max-age=3600
Pragma:cache
Pragma:no-cache

@lonnieezell
Copy link
Member

Fixed in 5a84030

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants