File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Webutilities Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Webutilities" Watch "Webutilities" New topic
Author

Webutilities

Robert Aryan
Greenhorn

Joined: May 08, 2009
Posts: 21
Using google compression(webutilities) for js and css.But js and css not available on loadbalancer. Any Idea???
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Question makes no sense. Please add more detail.
Robert Aryan
Greenhorn

Joined: May 08, 2009
Posts: 21
I am using google compression(Webutilities) and yuicompressor for compressing my js and css files.when i try to access my site from a external IP i am not getting js and css and when i excess the site from internal IP(VPN) css and js are coming. Any solution for this???
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61301
    
  66

Does it really have anything to do with the compression or are your URLs just poorly formed?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61301
    
  66

"rahuljain rahuljain", please check your private messages for an important administrative matter. Failure to do so may result in the removal of your account.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Using google compression(webutilities) for js and css


You are compressing them every time they are called? Most people do it at build time.

Have you looked at the traffic with Fiddler and see what the http response is back from the server? Have you looked at your error logs?

Eric

Robert Aryan
Greenhorn

Joined: May 08, 2009
Posts: 21
Eric Pascarello wrote:
Using google compression(webutilities) for js and css


You are compressing them every time they are called? Most people do it at build time.

Have you looked at the traffic with Fiddler and see what the http response is back from the server? Have you looked at your error logs?

Eric




I am compressing it on build time.But When I access my site from external ip ,js and css not found but when i chk it from internal ip(vpn) its working.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Have you debugged the http calls yet like I suggested? What is the http status code?

Eric
Robert Aryan
Greenhorn

Joined: May 08, 2009
Posts: 21
Http Code is 404 not found
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Sounds like the problem is on the server/firewall setup and not anything to do with JavaScript.

Eric
Robert Aryan
Greenhorn

Joined: May 08, 2009
Posts: 21
But if i remove the compression code then the site run from external ip and all js,css fille not give error code 404.Any reason for that??
 
GeeCON Prague 2014
 
subject: Webutilities