Skip to content

Commit bee1a30

Browse files
author
Ganin, Roman(rganin)
committed
Merge pull request #196 from magento-troll/develop
[Troll] Bugs fixes
2 parents d473ce1 + d9b5db6 commit bee1a30

File tree

6 files changed

+355
-120
lines changed

6 files changed

+355
-120
lines changed

app/code/Magento/PageCache/etc/varnish3.vcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ sub vcl_recv {
5454
std.collect(req.http.Cookie);
5555

5656
# static files are always cacheable. remove SSL flag and cookie
57-
if (req.url ~ "^/(pub/)?(media|static)/.*\.(png|jpg|jpeg|gif|css|js|swf|ico|woff|svg)$") {
57+
if (req.url ~ "^/(pub/)?(media|static)/.*\.(ico|css|js|jpg|jpeg|png|gif|tiff|bmp|gz|tgz|bz2|tbz|mp3|ogg|svg|swf|woff|woff2|eot|ttf|otf)$") {
5858
unset req.http.Https;
5959
unset req.http.Cookie;
6060
}
@@ -96,7 +96,7 @@ sub vcl_fetch {
9696
# images, css and js are cacheable by default so we have to remove cookie also
9797
if (beresp.ttl > 0s && (req.request == "GET" || req.request == "HEAD")) {
9898
unset beresp.http.set-cookie;
99-
if (req.url !~ "\.(css|js|jpg|png|gif|tiff|bmp|gz|tgz|bz2|tbz|mp3|ogg|svg|swf|woff)(\?|$)") {
99+
if (req.url !~ "\.(ico|css|js|jpg|jpeg|png|gif|tiff|bmp|mp3|ogg|svg|swf|woff|woff2|eot|ttf|otf)(\?|$)") {
100100
set beresp.http.Pragma = "no-cache";
101101
set beresp.http.Expires = "-1";
102102
set beresp.http.Cache-Control = "no-store, no-cache, must-revalidate, max-age=0";

app/code/Magento/PageCache/etc/varnish4.vcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ sub vcl_recv {
4747
std.collect(req.http.Cookie);
4848

4949
# static files are always cacheable. remove SSL flag and cookie
50-
if (req.url ~ "^/(pub/)?(media|static)/.*\.(png|jpg|jpeg|gif|css|js|swf|ico|woff|svg)$") {
50+
if (req.url ~ "^/(pub/)?(media|static)/.*\.(ico|css|js|jpg|jpeg|png|gif|tiff|bmp|mp3|ogg|svg|swf|woff|woff2|eot|ttf|otf)$") {
5151
unset req.http.Https;
5252
unset req.http.Cookie;
5353
}
@@ -90,7 +90,7 @@ sub vcl_backend_response {
9090
# images, css and js are cacheable by default so we have to remove cookie also
9191
if (beresp.ttl > 0s && (bereq.method == "GET" || bereq.method == "HEAD")) {
9292
unset beresp.http.set-cookie;
93-
if (bereq.url !~ "\.(css|js|jpg|png|gif|tiff|bmp|gz|tgz|bz2|tbz|mp3|ogg|svg|swf|woff)(\?|$)") {
93+
if (bereq.url !~ "\.(ico|css|js|jpg|jpeg|png|gif|tiff|bmp|gz|tgz|bz2|tbz|mp3|ogg|svg|swf|woff|woff2|eot|ttf|otf)(\?|$)") {
9494
set beresp.http.Pragma = "no-cache";
9595
set beresp.http.Expires = "-1";
9696
set beresp.http.Cache-Control = "no-store, no-cache, must-revalidate, max-age=0";

dev/tests/static/testsuite/Magento/Test/Integrity/HhvmCompatibilityTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class HhvmCompatibilityTest extends \PHPUnit_Framework_TestCase
3636
'mime_magic.magicfile',
3737
'display_errors',
3838
'default_socket_timeout',
39+
'pcre.recursion_limit',
3940
];
4041

4142
public function testAllowedIniGetSetDirectives()

0 commit comments

Comments
 (0)