Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added mod_pagespeed support #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,11 @@ var appinfo = {
url: 'http://nette.org/',
priority: 1.5
},
'PageSpeed': {
icon: 'PageSpeed.ico',
url: 'http://code.google.com/p/modpagespeed/',
priority: 1.5
},

// ==== misc ====
'': { // default
Expand Down
Binary file added apps/PageSpeed.ico
Binary file not shown.
17 changes: 10 additions & 7 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,23 @@ var tabinfo = {};

// initial list of header detection. will move this to a separate file later.
var knownHeaders = {
'x-powered-by': {
// 'Ruby on Rails': /Phusion Passenger/,
'Express.js': /Express/,
'PHP': /PHP\/?(.*)/,
'ASP.NET': /ASP\.NET/,
'Nette': /Nette Framework/
},
'server': {
'Apache': /Apache\/?(.*)/,
'nginx': /nginx\/?(.*)/,
'IIS': /Microsoft-IIS\/?(.*)/
},
'via': {
'Varnish': /(.*) varnish/
},
'x-mod-pagespeed': {
'PageSpeed': /(.*)/
},
'x-powered-by': {
// 'Ruby on Rails': /Phusion Passenger/,
'Express.js': /Express/,
'PHP': /PHP\/?(.*)/,
'ASP.NET': /ASP\.NET/,
'Nette': /Nette Framework/
}
};

Expand Down