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

Connect-gzip-static doesn't pick up html in firefox
Is it safe to include localhost into your connect-src for CSP?
Quit Browser-sync from terminal
lite-serverbs-config.js: middleware and array of folders
Make BrowserSync use the real https URL
Can we use browser sync on external url
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

Categories

HOME
design-patterns
checkstyle
fuelux
string
merge
ggplot2
ecmascript-6
ns-3
spring-data-redis
alarm
database-normalization
data-visualization
banner
joomla3.0
pattern-matching
owin
fhir
gson
jsonpath
php-5.6
cumulocity
glyphicons
wolframalpha
sse
string-concatenation
exit
interpreter
jquery-callback
perlbrew
pic32
stackexchange
progress-bar
bringtofront
magento-1.8
utorrent
card.io
installshield-le
hibernate-search
modalviewcontroller
slacktextviewcontroller
fiware-cygnus
apiary.io
openerp-7
loading
css-position
urlsession
datacachefactory
softmax
install.packages
placeholder
xmldocument
apache-directory
getchar
jboss-4.2.x
semantic-logging
truezip
opengl-4
builtins
hadoop-2.7.2
dotnetnuke-7
resourcemanager
mta
beamer
android-dateutils
data-protection
kendo-upload
toran-proxy
grgit
dllimport
intel-c++
phonertc
zen-cart
haskell-warp
linked-tables
gamekit
nodelist
packet-sniffers
metatrader5
with-statement
build-script
xml-dsig
ios8-extension
websphere-esb
hidapi
android-sdk-2.3
kqueue
hibernateexception
catransform3d
collectionviewsource
svk
vs-android
jqueryform
rowlex
ajax-polling
pagemethods
duplex
build-environment
pnrp

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