Skip to content

Commit b8a6e33

Browse files
authored
[PWA-1139] [MAGENTO CLOUD] PWA causing Fastly pages not cached (UPWARD-PHP) (#6)
* Add placeholder plugin to work around compile bug * Add a docblock to class
1 parent 1c7d735 commit b8a6e33

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
/**
3+
*
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
8+
declare(strict_types=1);
9+
10+
namespace Magento\UpwardConnector\Plugin\Magento\Framework\App;
11+
12+
/**
13+
* Empty class plugin to work around MC-39132. Prevents AppendNoStoreCacheHeader
14+
* plugin from leaking into the pwa area.
15+
*/
16+
class DICompileFix {}

etc/pwa/di.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
1010
<preference for="Magento\Framework\App\FrontControllerInterface" type="Magento\UpwardConnector\Controller\Upward" />
11+
<type name="Magento\Framework\App\FrontControllerInterface">
12+
<plugin name="di_compile_fix" type="Magento\UpwardConnector\Plugin\Magento\Framework\App\DICompileFix" />
13+
</type>
1114
</config>

0 commit comments

Comments
 (0)