Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome block requests

I am facing unusual issue in Chrome. it is blocking a few requests and returns following:

min.php?g=oxp-js&v=2.8.11 /openx/www/admin/assets GET (failed) dashboard.php:29 Parser

On further investigation it says:

Chrome provisional headers are shown

Same page works fine on other browsers.

Response Headers are given Below

Request URL:http://localhost/openx/www/admin/assets/min.php?g=oxp-css-ltr&v=2.8.11
Request Headers CAUTION: Provisional headers are shown.
Accept:text/css,*/*;q=0.1
Cache-Control:no-cache
Pragma:no-cache
Referer:http://localhost/openx/www/admin/dashboard.php
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.41 Safari/537.36
Query String Parametersview sourceview URL encoded
g:oxp-css-ltr
v:2.8.11

Below is the Buggy LInk that is not executed well by Chrome when executed as a part of a web page

[link rel="stylesheet" type="text/css" href="http://localhost/openx/www/admin/assets/min.php?g=oxp-css-ltr&v=2.8.11]

But when I access directly, it returns Headers properly. I can't figure out why is it like that?.

Update

I used LIVE HTTPHEADERS extension to grab the content, given below:

GET /openx/www/admin/assets/min.php?g=oxp-css-ltr&v=2.8.11 HTTP/1.1
Host: localhost
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,ur;q=0.6
Cache-Control: no-cache
Cookie: PHPSESSID=87eb59b22ac0ce0d57ecf1e422a412a7; ox_install_session_id=341ef9a68cffdbd9b47d6076e0f12d40; sessionID=b7ccb4b31bc58e5958ec84d44110100f
Pragma: no-cache
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.41 Safari/537.36

HTTP/1.1 200 OK
Cache-Control: max-age=1800, public, must-revalidate
Connection: Keep-Alive
Content-Encoding: deflate
Content-Length: 15116
Content-Type: text/css; charset=UTF-8
Date: Wed, 11 Dec 2013 16:40:49 GMT
ETag: "1375816424pub"
Expires: Wed, 11 Dec 2013 17:10:49 GMT
Keep-Alive: timeout=5, max=100
Last-Modified: Tue, 06 Aug 2013 19:13:44 GMT
Server: Apache/2.2.25 (Unix) mod_ssl/2.2.25 OpenSSL/0.9.8y DAV/2 PHP/5.5.3
Vary: Accept-Encoding
X-Powered-By: PHP/5.5.3
like image 298
Volatil3 Avatar asked Dec 11 '13 14:12

Volatil3


People also ask

How do I block a request on Google Chrome?

Right-click on the request in the Network panel and select Block Request URL. A new Request blocking tab pops up in the Drawer, which lets you manage blocked requests. Save this answer.

How do I edit Chrome requests?

In the Network panel of devtools, right-click and select Copy as cURL. Paste / Edit the request, and then send it from a terminal, assuming you have the curl command.


2 Answers

I had a similar problem today loading jShowOff jQuery's plugin. In my case the resource was being blocked by a Chrome extension (AdBlock). I couldn't see the problem in other browsers because AdBloc was installed in Chrome only.

The CAUTION: Provisional headers are shown. message is shown in DevTools because the headers you are seeing are not the actual headers sent to the server. In this case no headers were sent, because the resource was blocked before doing the request. The comments in this issue has additional details that explain the CAUTION message.

You probably have an extension that's blocking your URL.

like image 179
Willington Vega Avatar answered Oct 04 '22 15:10

Willington Vega


I ran into a similar issue this week. For few Chrome and Safari users, there was a huge delay in loading the web application. My application is based on Spring MVC framework and is deployed on Tomcat 7 server. I found that the issue was with server's HTTP Connector attibute : maxKeepAliveRequests.From the Tomcat's HTTP Connector documentation found here,I understood that this attribute determines the maximum number of HTTP requests which can be pipelined until the connection is closed by the server. In your case, I see the header attribute is set to "Keep-Alive: timeout=5, max=100". Please check the corresponding connector value in your server and take appropriate action.

like image 31
kbgn Avatar answered Oct 04 '22 14:10

kbgn