Comments (5)
We noticed the same problem and solved it by changing the file app/design/frontend/base/default/template/varnishcache/cookie/formkey.phtml in line 33:
From:
if (document.cookie.length && (document.cookie.indexOf('=') == -1)) {
To:
if (document.cookie.indexOf('=') == -1) {
Does anybody know why there is the cookie length check?
from magento-pagecache-powered-by-varnish.
I've tried your fix and works on Magento single store!
I've a multi-store Magento installation and I following your tip and added some additional steps:
- I've not hardcoded varnishcache/cookie/formkey.phtml but I've created this into my custom template folders -> app/design/frontend/**default/mycustomtemplate/**template/varnishcache/cookie/formkey.phtml
- Added in System > Configuration > General > Web > Cookie Session, foreach domain I've add the specific url as www.mydomain.com and b2b.mydomain.com
- Flush Magento cache
- Clear all cache
- Clear Varnish cache
- Restart Varnish (optional but recommended)
Thank you
Magento 1.8.1
Varnish 3.0
NginX + PHP-FPM
from magento-pagecache-powered-by-varnish.
I've solved it with the setting "Use SID on Frontend" to "yes"
System > Configuration > General > Web > Session Validation Settings
I don't know if has logic, but worked fine
from magento-pagecache-powered-by-varnish.
Same issue here, if I open the site the first time in Incognito mode I can see a different form_key generated and the PAGECACHE_FORMKEY is different also after refreshing the page etc.
Can't add any Product to the cart and the site is unusable.
I'm missing something? How I can make it work correctly every time someone visit the site?
from magento-pagecache-powered-by-varnish.
solved using Lesti-FPC!
Varnish make me crazy ... it was very very fast on loading but so hard to configure no-cache elements as megamenu ...
from magento-pagecache-powered-by-varnish.
Related Issues (20)
- Fatal error: Call to a member function generateDesignExceptionSub() HOT 1
- Getting "undefined symbol: MD5" when using new default_4.1.vcl HOT 6
- Compiling of default_4.1.vcl fails with Cannot create .eh_frame_hdr section [...] HOT 7
- Method with same name already exist HOT 1
- Cannot login directly
- Cannot redeclare Phoenix_VarnishCache_Adminhtml_VarnishCacheController::_isAllowed() in VarnishCacheController.php on line 155 HOT 1
- Cannot restart varnish when used the default_3.0.vcl file HOT 3
- Magento site couldn't be cached when user logged in HOT 8
- purge url programmatically HOT 2
- Cookie Restriction Mode issue when enabled HOT 2
- After added to cart, varnish doesn't cache anymore HOT 1
- Enterprise Product Save Not Purging
- Switching Module Off Leaves ESI tags
- Problems with Add to cart
- No cache anymore since I switched to HTTPS HOT 7
- Varnish 5 Support HOT 1
- Varnish Not Cache When Cookie EXTERNAL_NO_CACHE added
- ESI HOT 1
- my shopping cart does not capture the products on the first attempt HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento-pagecache-powered-by-varnish.