mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-13 16:45:14 +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
|
||||
|
||||
<IfModule mod_filter.c>
|
||||
#<IfModule mod_filter.c>
|
||||
AddOutputFilterByType DEFLATE "application/atom+xml" \
|
||||
"application/javascript" \
|
||||
"application/json" \
|
||||
@ -773,7 +773,7 @@ ServerSignature Off
|
||||
"text/x-cross-domain-policy" \
|
||||
"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
|
||||
//
|
||||
@ -406,7 +396,6 @@ gulp.task('build', function(cb) {
|
||||
'revision-replace',
|
||||
'cdn',
|
||||
'optimize:html',
|
||||
'optimize:gzip',
|
||||
'optimize:images',
|
||||
cb
|
||||
);
|
||||
|
@ -32,7 +32,6 @@
|
||||
"gulp-connect": ">=2.0.5",
|
||||
"gulp-cssmin": ">=0.1.7",
|
||||
"gulp-filter": "^2.0.2",
|
||||
"gulp-gzip": ">=1.1.0",
|
||||
"gulp-header": ">=1.2.2",
|
||||
"gulp-htmlmin": ">=1.1.2",
|
||||
"gulp-imagemin": ">=2.2.1",
|
||||
|
Loading…
Reference in New Issue
Block a user