Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP gzip middleware #6

Open
patrickjaja opened this issue Jun 8, 2015 · 1 comment
Open

PHP gzip middleware #6

patrickjaja opened this issue Jun 8, 2015 · 1 comment

Comments

@patrickjaja
Copy link

I have a gzip server response that is send to clients by apache,
but not by browserSync proxy in development (its json encoded gzip content).

This is what i have now:

var browserSync = require('browser-sync');
browserSync({
    notify: false,
    logPrefix: packageJson.name,
    proxy: 'localhost', //Apache
    startPath: packageJson.appPath+'app',
    files: ["api/app/**/*.php"],
        middleware: require("connect-gzip")
  });

And before i have tryed the recipe for static content.
https://github.com/BrowserSync/recipes/tree/master/recipes/server.gzipped.assets

Can you confirm me the right way to handle that with browserSync?
Any experiences?

@shakyShane
Copy link
Contributor

Do you mean skip the gzip when running through Browsersync?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants