Issue 17305

Assets in wrong domain

17305
Reporter: trobertson
Assignee: fmendez
Type: Bug
Summary: Assets in wrong domain
Priority: Unassessed
Resolution: Fixed
Status: Closed
Created: 2015-02-23 13:54:15.214
Updated: 2017-10-10 10:20:21.517
Resolved: 2017-10-10 10:20:21.502
        
        
Description: Some assets are being referenced as apps.gbif.org and not www.gbif.org (or cdn.gbif.org).  Please see missing styling on this page, and view the red assets and their URLs in the dev tools

https://www.dropbox.com/s/tru5l76jzzuacc5/Screenshot%202015-02-23%2013.53.05.png?dl=0]]>
    

Attachment Screen Shot 2015-02-23 at 17.15.02.png


Attachment Screen Shot 2015-02-23 at 17.17.27.png

Attachment bad_style.css
Attachment GOOD_style.css


Author: trobertson@gbif.org
Created: 2015-02-23 16:50:07.671
Updated: 2015-02-23 16:50:07.671
        
I have fixed this by bouncing varnish to refresh this:
  http://www.gbif.org/css/style.css?v=2

The version that cached in Varnish was full of references to "apps.gbif.org/img/" rather than "../img/footer/"

I do not know why or how it got there

    


Author: mdoering@gbif.org
Created: 2015-02-23 17:23:08.353
Updated: 2015-02-23 17:23:08.353
        
Seeing it also on publisher page:
http://www.gbif.org/publisher/fbca90e3-8aed-48b1-84e3-369afbd000ce

Attaching gbif-publisher screens showing its all coming from CDN as 304 not modified.
The css contains links to apps.gbif.org images like this one:

http://cdn.gbif.org/css/style.css?v=2
background: url(http://apps.gbif.org/img/header/infoband.jpg) repeat-x right top;

    


Author: trobertson@gbif.org
Comment: Attached are the 2 versions which we see produced
Created: 2015-02-25 09:50:35.539
Updated: 2015-02-25 09:50:35.539


Author: trobertson@gbif.org
Created: 2015-02-25 09:59:27.543
Updated: 2015-02-25 09:59:27.543
        
One possible cause could be a race condition between ModPageSpeed and the virt_portal rewrite rules.