Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Better headers, no more gzip issues Fixes 65 #75

Closed
wants to merge 2 commits into from
Closed

Better headers, no more gzip issues Fixes 65 #75

wants to merge 2 commits into from

Conversation

phpmaps
Copy link

@phpmaps phpmaps commented Apr 4, 2014

Let's try this to make better headers. Very similar to older copies of the proxy.

@esoekianto esoekianto added this to the 1.0 milestone Apr 9, 2014
@esoekianto esoekianto mentioned this pull request Apr 10, 2014
@phpmaps
Copy link
Author

phpmaps commented Apr 10, 2014

Transfer-Encoding: chunked responses do not proxy well. It triggers a Caution provisional headers are shown warning. This was the test that brought the pull request error to my attention.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Web Map</title>

<link rel="stylesheet" href="http://js.arcgis.com/3.8/js/esri/css/esri.css">
<style>
html,body,#map {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #FFF;
    overflow: hidden;
    font-family: "Trebuchet MS";
}
</style>
<script src="http://js.arcgis.com/3.8/"></script>


<script>
    require([ "esri/map", "esri/arcgis/utils", "esri/urlUtils",
            "dojo/domReady!" ], function(Map, arcgisUtils, urlUtils) {

        //define proxy rule 
        urlUtils.addProxyRule({
            proxyUrl : "proxy.php",
            urlPrefix : "www.arcgis.com/sharing/rest"
        });
        //4a675e9bc2994a7594ffeec7aaefd749
        //21ed1ae438c242fa874879cc4a69e236
        arcgisUtils.createMap("8ab1952ea6a94241b7f64ae4ae10e622", "map");
    });
</script>
</head>
<body>
<div id="map"></div>
</body>
</html>

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

Successfully merging this pull request may close these issues.

2 participants