Web-bugs: om.olacabs.com - gzipped script files do not get parsed

Created on 12 Sep 2018  路  8Comments  路  Source: webcompat/web-bugs



URL: https://om.olacabs.com/om-app/home

Browser / Version: Firefox 63.0
Operating System: Linux
Tested Another Browser: Yes

Problem type: Site is not usable
Description: gzipped script files do not get parsed
Steps to Reproduce:
open url : https://om.olacabs.com/om-app/home

open Developer tools/console: you can see this error:

SyntaxError: illegal character[Learn More] vendor.bundle.js:1
SyntaxError: illegal character[Learn More] 75188df31ceba3523eb6.main.js:1

Headers: Content-Encoding:gzip, Content-Type:application/gzip are present

Works fine on Chrome (Chromium - 71.0.3544.0 (Developer Build) (64-bit-linux))

Screenshot Description

When I try to open these script files in new tab, It shows unextracted binary data.

screenshot from 2018-09-12 21-44-43


Browser Configuration

  • mixed active content blocked: false
  • buildID: 20180906162647
  • tracking content blocked: false
  • gfx.webrender.blob-images: true
  • gfx.webrender.all: false
  • mixed passive content blocked: false
  • layers.acceleration.force-enabled: false
  • gfx.webrender.enabled: false
  • image.mem.shared: true
  • channel: aurora

_From webcompat.com with 鉂わ笍_

browser-firefox engine-gecko priority-normal severity-critical status-first-contact

All 8 comments

@karlcow, care to take a look?

HTTP/1.1 200 OK
Accept-Ranges: bytes
Cache-Control: max-age=0
Content-Encoding: gzip
Content-Length: 53861
Content-Security-Policy: frame-ancestors 'self' olacabs.com *.olacabs.com;
Content-Type: application/gzip
Date: Wed, 12 Sep 2018 21:06:45 GMT
ETag: W/"d265-1643718f988"
Last-Modified: Mon, 25 Jun 2018 13:19:01 GMT
Server: Jetty(9.2.z-SNAPSHOT)
Via: 1.1 Repose (Repose/7.1.3.0)
X-Powered-By: Express
x-trans-id: 2708e5f5-3cff-47a7-96d2-a93866885a4f

The Content-Encoding: gzip is correct, but the Content-Type: application/gzip is not if the intent is to serve a JavaScript script. it should be Content-Type: application/javascript.

Moving to needscontact.

And thanks for reporting @krrishh-org with good details. That's cool.

The issue is still reproducible on my side.
image

Tested with:
Browser / Version: Firefox Nightly 69.0a1 (2019-06-10)
Operating System: Windows 10 Pro

The issue seems to be fixed.
For https://om.olacabs.com/om-app/vendor.bundle.js Content-Type is now application/javascript

image

Note: The layout also changed, now after navigating to the provided URL, I'm redirected to https://accounts.olacabs.com/?returnurl=https%3A%2F%2Fom.olacabs.com%2Fom-app%2Fhome and valid Indian phone is requested to create an account.

Tested with:
Browser / Version: Firefox Nightly 70.0a1 (2019-08-28)
Operating System: Windows 10 Pro

I'll close it as fixed.
@krrishh-org can you still reproduce the issue? If yes feel free to reopen it.

It works now. Thanks.

Thanks @krrishh-org for checking.

Was this page helpful?
0 / 5 - 0 ratings