This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import pytest | |
import config | |
import test_helpers as helpers | |
filters = [ | |
("add_instrumentation","ai"), | |
("canonicalize_javascript_libraries","ij"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MvcApplication : System.Web.HttpApplication | |
{ | |
private static object ga_lock_ = new {}; | |
private static bool ga_refreshed_ = false; | |
private void Application_BeginRequest(object sender, EventArgs e) | |
{ | |
if (!ga_refreshed_) { | |
lock(ga_lock_) { | |
Response.CacheControl = "public"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EndToEndHeadersContainer { | |
public: | |
EndToEndHeadersContainer() { | |
// See http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.5.1 | |
const int kReserveSize = 36; | |
int index = 0; | |
StringPieceVector names(kReserveSize); | |
names[index++] = StringPiece(HttpAttributes::kAccept); | |
names[index++] = StringPiece(HttpAttributes::kAcceptEncoding); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/config b/config | |
index 848523c..9bd4a52 100644 | |
--- a/config | |
+++ b/config | |
@@ -193,9 +193,8 @@ if [ $ngx_found = yes ]; then | |
$ps_src/ngx_server_context.cc \ | |
$ps_src/ngx_url_async_fetcher.cc" | |
- # Make pagespeed run immediately before gzip. | |
- HTTP_FILTER_MODULES=$(echo $HTTP_FILTER_MODULES |\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2012 Google Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016/04/13 13:45:42 [debug] 27207#0: *2 SSL_write: 13 | |
2016/04/13 13:45:42 [debug] 27207#0: *2 http2 frame sent: 0000000001E6DEC8 sid:0 bl:0 len:4 | |
2016/04/13 13:45:42 [debug] 27207#0: *2 free: 0000000001E6DC70, unused: 3320 | |
2016/04/13 13:45:42 [debug] 27207#0: *2 free: 0000000001EEF080 | |
2016/04/13 13:45:42 [debug] 27207#0: *2 reusable connection: 1 | |
2016/04/13 13:45:42 [debug] 27207#0: *2 event timer del: 9: 1460548122266 | |
2016/04/13 13:45:42 [debug] 27207#0: *2 event timer add: 9: 180000:1460548122683 | |
2016/04/13 13:45:42 [debug] 27207#0: timer delta: 417 | |
2016/04/13 13:45:42 [debug] 27207#0: worker cycle | |
2016/04/13 13:45:42 [debug] 27207#0: epoll timer: 180000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016/04/13 13:52:18 [debug] 27207#0: *82 post event 0000000001EBF120 | |
2016/04/13 13:52:18 [debug] 27207#0: posted event 0000000001EBF120 | |
2016/04/13 13:52:18 [debug] 27207#0: *82 delete posted event 0000000001EBF120 | |
2016/04/13 13:52:18 [debug] 27207#0: *82 http2 handle connection handler | |
2016/04/13 13:52:18 [debug] 27207#0: *82 free: 0000000001E6DC70, unused: 3496 | |
2016/04/13 13:52:18 [debug] 27207#0: *82 free: 0000000001EEF080 | |
2016/04/13 13:52:18 [debug] 27207#0: *82 reusable connection: 1 | |
2016/04/13 13:52:18 [debug] 27207#0: *82 event timer add: 9: 180000:1460548518022 | |
2016/04/13 13:52:18 [debug] 27207#0: worker cycle | |
2016/04/13 13:52:18 [debug] 27207#0: epoll timer: 180000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
94784: HTTP2_SESSION | |
192.168.137.10:4430 (DIRECT) | |
Start Time: 2016-04-13 15:01:23.229 | |
t=331196 [st= 0] +HTTP2_SESSION [dt=?] | |
--> host = "192.168.137.10:4430" | |
--> proxy = "DIRECT" | |
t=331196 [st= 0] HTTP2_SESSION_INITIALIZED | |
--> protocol = "h2" | |
--> source_dependency = 94783 (SOCKET) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Welcome to nginx!</title> | |
<style> | |
body { | |
width: 35em; | |
margin: 0 auto; | |
font-family: Tahoma, Verdana, Arial, sans-serif; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/pagespeed/kernel/cache/file_cache.cc b/pagespeed/kernel/cache/file_cache.cc | |
index 3951c02..f595832 100644 | |
--- a/pagespeed/kernel/cache/file_cache.cc | |
+++ b/pagespeed/kernel/cache/file_cache.cc | |
@@ -304,6 +304,7 @@ void FileCache::CleanWithLocking(int64 next_clean_time_ms) { | |
} | |
bool FileCache::ShouldClean(int64* suggested_next_clean_time_ms) { | |
+ return false; | |
bool to_return = false; |
OlderNewer