browser-sync


Connect-gzip-static doesn't pick up html in firefox


I found this tutorial, which talks about how to serve with pre-gzipped assets example with browser-sync.
It picks up *.html, *.css, *.js, *.{jpg,png} in firefox v51.0.1 (current version), but with the previous version (v50), it generates 404 error with .html file but find pre-gzipped file to another file.
I understand that it doesn't find the file, because into pre-gzipped assets, files are .*.gzip.
What I do not understand is, why firefox lt 51 doesn't render the file that connect-gzip-statictells it to render.
Here's my bs-config.js:
var Environement = require("./env");
var indexFile = Environement.enableProd ? '/index.html' : '/index_dev.html';
var middleware = require('connect-gzip-static')('./web_app');
module.exports = {
notify: false,
logLevel: "silent",
server: {
middleware: {
0: null, // removes default `connect-logger` middleware
1: require('connect-history-api-fallback')({
index: indexFile
}),
2: middleware
}
},
ghostMode: false
};
Is there another way to solve this problem?
Is there anybody here who has encountered the same problem as me?
Note: With chrome, IE Edge and FF v51, it works perfectly.

Related Links

How to replace .html with forward slash in BrowserSync?
Error during instillation of browser sync
When using browser-sync,why is the browser saying cannot get, while everything seems fine
How to sync the actions performed on webpage using Browsersync?
lite-server, BrowserSync: setting other URL path than /
Gulp and Browsersync injecting CSS but causing a full reload
Browser-sync - serve “node_modules” out of “src” directory
[browser-sync]browser-sync proxy can't connect to Rails Application
Browserstack not serving index.html by default
whatever i do i can't access the external URL for the site or UI
How do I kill browserSync before creating it?
Unable to install browser-sync on windows 7
browser-sync proxy fails to connect
What's the equivalent bs-config.js (Browsersync) of this command?
How to quit the browser-sync server, or how to know the running server pid
browsersync not working (note: not using gulp)

Categories

HOME
go
asp.net-web-api
phantom-dsl
azure-stream-analytics
porting
api
awk
developer-tools
apache-flink
angular2-material
sitecore
solver
rendering
alsa
telegram-bot
nested-if
vert.x
extjs4.2
augeas
reactive-programming
supervisor
selenium-ide
bitnami
android-7.0-nougat
video-editing
jersey-1.0
imessage
selinux
visual-glitch
backpack-for-laravel
interpreter
mount
tiki-wiki
moses
google-cloud-print
paperjs
comparable
postback
powershell-ise
paragraph
record
kodi
laravel-eloquent
lubridate
apic
google-knowledge-graph
sessionstorage
p4merge
dcmtk
install.packages
optimizely
vaadin-elements
user-defined-fields
tinymce-3
podscms
singleinstance
context-switch
java-6
chromium-os
xcode-server
lrs
http-status-code-401
yajsw
ellucian-scribe
realsense
character-replacement
file-move
extjs-grid
text-search
batik
sha512
avahi
java-security
theos
beatsmusic
viewer
ghcjs
template-deduction
kissfft
authlogic
qscrollarea
git-repo
rfc5322
gd-graph
merb
facebook-timeline
http-status-code-410
jquery-blockui
usertype
box2d-iphone
flex-mobile
lr
w3c-geolocation
timthumb
pos-for-.net
mathematical-notation
dojo-dnd
sifr3
contentpresenter
mathematical-typesetting

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App