mirror of
https://github.com/kremalicious/blog.git
synced 2025-02-14 21:10:25 +01:00
fix server compression
This commit is contained in:
parent
1e63cd8906
commit
06956d3e00
@ -739,7 +739,7 @@ ServerSignature Off
|
|||||||
#
|
#
|
||||||
# https://httpd.apache.org/docs/current/mod/mod_filter.html#addoutputfilterbytype
|
# https://httpd.apache.org/docs/current/mod/mod_filter.html#addoutputfilterbytype
|
||||||
|
|
||||||
<IfModule mod_filter.c>
|
#<IfModule mod_filter.c>
|
||||||
AddOutputFilterByType DEFLATE "application/atom+xml" \
|
AddOutputFilterByType DEFLATE "application/atom+xml" \
|
||||||
"application/javascript" \
|
"application/javascript" \
|
||||||
"application/json" \
|
"application/json" \
|
||||||
@ -773,7 +773,7 @@ ServerSignature Off
|
|||||||
"text/x-cross-domain-policy" \
|
"text/x-cross-domain-policy" \
|
||||||
"text/xml"
|
"text/xml"
|
||||||
|
|
||||||
</IfModule>
|
#</IfModule>
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
|
11
gulpfile.js
11
gulpfile.js
@ -252,16 +252,6 @@ gulp.task('media', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
//
|
|
||||||
// Gzip all the things
|
|
||||||
//
|
|
||||||
gulp.task('optimize:gzip', function() {
|
|
||||||
return gulp.src(dist + '/**/*.{html,xml,json,css,js}')
|
|
||||||
.pipe($.gzip())
|
|
||||||
.pipe(gulp.dest(dist))
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Optimize HTML
|
// Optimize HTML
|
||||||
//
|
//
|
||||||
@ -406,7 +396,6 @@ gulp.task('build', function(cb) {
|
|||||||
'revision-replace',
|
'revision-replace',
|
||||||
'cdn',
|
'cdn',
|
||||||
'optimize:html',
|
'optimize:html',
|
||||||
'optimize:gzip',
|
|
||||||
'optimize:images',
|
'optimize:images',
|
||||||
cb
|
cb
|
||||||
);
|
);
|
||||||
|
@ -32,7 +32,6 @@
|
|||||||
"gulp-connect": ">=2.0.5",
|
"gulp-connect": ">=2.0.5",
|
||||||
"gulp-cssmin": ">=0.1.7",
|
"gulp-cssmin": ">=0.1.7",
|
||||||
"gulp-filter": "^2.0.2",
|
"gulp-filter": "^2.0.2",
|
||||||
"gulp-gzip": ">=1.1.0",
|
|
||||||
"gulp-header": ">=1.2.2",
|
"gulp-header": ">=1.2.2",
|
||||||
"gulp-htmlmin": ">=1.1.2",
|
"gulp-htmlmin": ">=1.1.2",
|
||||||
"gulp-imagemin": ">=2.2.1",
|
"gulp-imagemin": ">=2.2.1",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user