Skip to content

Commit 883e94a

Browse files
committed
Updated SCSSPHP, more structured data, Google Fonts swap, increased cache times, SW improvements
These include some initial ideas from Google I/O, with many more improvements to come after the next major version release. Referencing #1872 #1903 #1899 #1709
1 parent 94fbd9b commit 883e94a

File tree

18 files changed

+279
-86
lines changed

18 files changed

+279
-86
lines changed

Nebula-Child/resources/htaccess-root.txt

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -156,21 +156,16 @@
156156

157157
#Cache files for certain lengths of time
158158
#1 YEAR
159-
<FilesMatch "\.(ico|pdf|flv|png|gif|swf|jpg|jpeg|svg|woff|mp3|css|php|html|js)$">
160-
Header set Cache-Control "max-age=29030400, public"
159+
<FilesMatch "\.(ico|pdf|flv|png|gif|swf|jpg|jpeg|svg|woff|woff2|mp3|css|js)$">
160+
Header set Cache-Control "max-age=31536000, public"
161161
</FilesMatch>
162162

163-
# 30 Days
164-
<FilesMatch "\.(png|gif|swf|jpg|jpeg|svg|woff|woff2|mp3|css|js)$">
165-
Header set Cache-Control "max-age=2592000, public"
166-
</FilesMatch>
167-
168-
# 2 DAYS
163+
#2 DAYS
169164
<FilesMatch "\.(xml|txt)$">
170165
Header set Cache-Control "max-age=172800, proxy-revalidate"
171166
</FilesMatch>
172167

173-
# 10 HOURS
168+
#10 HOURS
174169
<FilesMatch "\.(php|html)$">
175170
Header set Cache-Control "max-age=36000, public"
176171
</FilesMatch>

Nebula-Child/resources/sw.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//BEGIN automated edits. These will be automatically overwritten.
22
var THEME_NAME = 'nebula-child';
3-
var NEBULA_VERSION = 'v6.12.2.7153'; //Friday, May 3, 2019 3:57:47 PM
3+
var NEBULA_VERSION = 'v6.12.9.9104'; //Friday, May 10, 2019 11:58:33 PM
44
var OFFLINE_URL = 'https://gearside.com/nebula/offline/';
55
var OFFLINE_IMG = 'https://gearside.com/nebula/wp-content/themes/Nebula-master/assets/img/offline.svg';
66
var OFFLINE_GA_DIMENSION = 'cd2';
@@ -34,7 +34,7 @@ workbox.precaching.precacheAndRoute([
3434
OFFLINE_IMG,
3535
META_ICON,
3636
MANIFEST,
37-
//HOME_URL, //This is breaking the service worker again. //https://github.com/chrisblakley/Nebula/issues/1709
37+
HOME_URL,
3838
START_URL
3939
]);
4040

Nebula-Child/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/admin.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/critical.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/login.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/pre.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/scss/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Description: Nebula is a springboard WordPress theme framework for developers. Like other WordPress startup themes, it has custom functionality built-in (like shortcodes, styles, and JS/PHP functions), but unlike other themes Nebula is not meant for the end-user.
55
Author: Pinckney Hugo Group
66
Author URI: http://www.pinckneyhugo.com
7-
Version: 6.12.3.6652
7+
Version: 6.12.10.9991
88
License: GNU General Public License v2.0 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, threaded-comments, theme-options, sticky-post, post-formats, microformats, full-width-template, front-page-post-form, flexible-header, featured-images, featured-image-header, editor-style, custom-menu, custom-colors, accessibility-ready

inc/budget.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[{
2+
"path": "/",
3+
"resourceSizes": [
4+
{
5+
"resourceType": "document",
6+
"budget": 20
7+
},{
8+
"resourceType": "stylesheet",
9+
"budget": 160
10+
},{
11+
"resourceType": "font",
12+
"budget": 30
13+
},{
14+
"resourceType": "image",
15+
"budget": 300
16+
},{
17+
"resourceType": "script",
18+
"budget": 200
19+
}
20+
]
21+
}]

inc/data/nebula_theme.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "6.12.3.6652",
2+
"version": "6.12.10.9991",
33
"details_url": "https://github.com/chrisblakley/Nebula/commits/master",
44
"download_url": "https://github.com/chrisblakley/Nebula/archive/master.zip"
55
}

0 commit comments

Comments
 (0)