1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-23 01:30:01 +01:00

fix server compression

This commit is contained in:
Matthias Kretschmann 2015-06-13 22:56:06 +02:00
parent 1e63cd8906
commit 06956d3e00
3 changed files with 2 additions and 14 deletions

View File

@ -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>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -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
);

View File

@ -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",