{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/2657","labels_url":"https://api.github.com/repos/magento/magento2/issues/2657/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/2657/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/2657/events","html_url":"https://github.com/magento/magento2/issues/2657","id":121234694,"number":2657,"title":"_wrapEsi() should always return http:// URLs","user":{"login":"boldhedgehog","id":2846732,"avatar_url":"https://avatars.githubusercontent.com/u/2846732?v=3","gravatar_id":"","url":"https://api.github.com/users/boldhedgehog","html_url":"https://github.com/boldhedgehog","followers_url":"https://api.github.com/users/boldhedgehog/followers","following_url":"https://api.github.com/users/boldhedgehog/following{/other_user}","gists_url":"https://api.github.com/users/boldhedgehog/gists{/gist_id}","starred_url":"https://api.github.com/users/boldhedgehog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boldhedgehog/subscriptions","organizations_url":"https://api.github.com/users/boldhedgehog/orgs","repos_url":"https://api.github.com/users/boldhedgehog/repos","events_url":"https://api.github.com/users/boldhedgehog/events{/privacy}","received_events_url":"https://api.github.com/users/boldhedgehog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-09T13:10:55Z","updated_at":"2015-12-12T05:27:12Z","closed_at":null,"body":"I'm trying to configure the frontend to be SSL only. So all my links start with https://\r\n\r\n**Magento\\PageCache\\Observer\\ProcessLayoutRenderElement::_wrapEsi()** generates URLs starting with https:// \r\n\r\n```HTML\r\n<esi:include src=\"https://magetwo.local/page_cache/block/esi/blocks/[%22catalog.topnav%22]/handles/[%22default%22,%22cms_index_index%22,%22cms_page_view%22,%22cms_index_index_id_home%22]/\"/>\r\n```\r\n\r\nAs I understand, Varnish has no SSL functionality, so this include is not processed.\r\n\r\nCan the method **_wrapEsi()** be changed that way, so it always returns http:// links?"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/164112103","html_url":"https://github.com/magento/magento2/issues/2657#issuecomment-164112103","issue_url":"https://api.github.com/repos/magento/magento2/issues/2657","id":164112103,"user":{"login":"bgkavinga","id":3830093,"avatar_url":"https://avatars.githubusercontent.com/u/3830093?v=3","gravatar_id":"","url":"https://api.github.com/users/bgkavinga","html_url":"https://github.com/bgkavinga","followers_url":"https://api.github.com/users/bgkavinga/followers","following_url":"https://api.github.com/users/bgkavinga/following{/other_user}","gists_url":"https://api.github.com/users/bgkavinga/gists{/gist_id}","starred_url":"https://api.github.com/users/bgkavinga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgkavinga/subscriptions","organizations_url":"https://api.github.com/users/bgkavinga/orgs","repos_url":"https://api.github.com/users/bgkavinga/repos","events_url":"https://api.github.com/users/bgkavinga/events{/privacy}","received_events_url":"https://api.github.com/users/bgkavinga/received_events","type":"User","site_admin":false},"created_at":"2015-12-12T05:27:12Z","updated_at":"2015-12-12T05:27:12Z","body":"@boldhedgehog we resolved this issue by starting varnish with **-p feature=+esi_ignore_https** option"}}