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

Cache control headers not set #7008

Open
ADDCreative opened this Issue Nov 5, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@ADDCreative
Copy link
Contributor

ADDCreative commented Nov 5, 2018

Since version 3 uses its own session handling, session_start(), quite rightly, is not longer called. However, as session_start() was also responsible for setting the cache control headers, they are now no longer being set by default (apart from a few places such as captcha/basic and downloads).

The session.cache-limiter, which usually defaults to nocache, controls the headers. http://php.net/manual/en/session.configuration.php#ini.session.cache-limiter You can see the headers that used to be set by session_start() here. http://php.net/manual/en/function.session-cache-limiter.php

This is particularly problematic for Internet Explorer 11 (note: not Edge in emulation mode) which aggressively caches responses from ajax GET request. This can cause problems with adding to cart, checkout, payment selection, etc.

Some forum posts confirming the problem.
https://forum.opencart.com/viewtopic.php?f=201&t=207498#p737430
https://forum.opencart.com/viewtopic.php?f=202&t=207703

Could also be the cause of following issues.
#6771
#6600

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.