Comments (5)
Hi,
this bug was reported before and actually I can reproduce it on the demo instance http://varnish.demo.aoemedia.de/.
Also check the comments on http://www.fabrizio-branca.de/make-your-magento-store-fly-using-varnish.html for this problem.
Without having digged into that deeper I expect the problem to be in the session handling via ajax. As soon as I have a solution I will update this repository and leave a note here . (But that might take a while, as I have some other higher priority tasks).
If you might come across a solution earlier please tell me, and I will include that into the module.
from aoe_static.
ok thx for your reply, if i find the problem I'll inform you.
from aoe_static.
I think this might be due to Magento and Varnish having different ports. This will fail the same origin policy (see SOP and JSONP).
Try setting the cookie domain for Magento. SQL:
SELECT * FROM core_config_data
WHERE scope_id=0 AND path='web/cookie/cookie_domain';
If you get NULL
, update your setting:
UPDATE core_config_data SET value = 'myshop.com'
WHERE scope_id=0 AND path='web/cookie/cookie_domain';
from aoe_static.
What about ... ?
Starting HTTP accelerator: varnishd failed!
Message from VCC-compiler:
Unknown variable 'req.hash'
At: ('input' Line 8 Pos 9)
set req.hash += req.url;
--------########------------
Running VCC-compiler failed, exit 1
VCL compilation failed
Varnish 3.0.3
from aoe_static.
I was able to fix or work around this problem by setting 'web/cookie/cookie_httponly' to 0.
Set "System" ==> "Configuration" ==> "Web ==> Tab "Session Cookie Management" ==> "Use HTTP only" to "No". Hope this helps!
from aoe_static.
Related Issues (9)
- Use cookie storage as an alternative to AJAX calls HOT 5
- PHP Fatal when using with Pagecache powered by Varnish - Phoenix Media
- Form_key issue passing! HOT 1
- Missing stable version installable by composer
- Security issue with default Varnish configuration HOT 1
- Mage registry key already exists HOT 1
- How to get block ...
- Redirect by referrer HOT 2
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 aoe_static.