Lists: | pgsql-www |
---|
From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | w^3 <pgsql-www(at)lists(dot)postgresql(dot)org> |
Subject: | missing files because versioning? |
Date: | 2023-03-08 19:08:51 |
Message-ID: | 20230308190851.mc2khkfsjhu4cimp@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
Hi
I just noticed that opening www.postgresql.org under Chromium's DevTools
mode shows these three errors in the console:
DevTools failed to load source map: Could not load content for /media/js/popper.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for /media/css/bootstrap.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for /media/js/bootstrap.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
It appears that we do have these files under /media/, but with version
numbers embedded in their names. Does this mean that we're missing a
symlink, or perhaps a redirect rule?
--
Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/
From: | "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org> |
---|---|
To: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, w^3 <pgsql-www(at)lists(dot)postgresql(dot)org> |
Subject: | Re: missing files because versioning? |
Date: | 2023-03-09 01:26:50 |
Message-ID: | 63d0fe7c-eb8b-50ab-3268-78c52ab0c1d5@postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On 3/8/23 2:08 PM, Alvaro Herrera wrote:
> Hi
>
> I just noticed that opening www.postgresql.org under Chromium's DevTools
> mode shows these three errors in the console:
>
> DevTools failed to load source map: Could not load content for /media/js/popper.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
> DevTools failed to load source map: Could not load content for /media/css/bootstrap.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
> DevTools failed to load source map: Could not load content for /media/js/bootstrap.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
>
> It appears that we do have these files under /media/, but with version
> numbers embedded in their names. Does this mean that we're missing a
> symlink, or perhaps a redirect rule?
These are used for debugging and the errors only show up if you load the
console. We can silence the error that removes the line that tries to
load the map files, or you can disable it in your local console i.e.
uncheck "enable source map files".
I have a patch ready that disables the actual load -- if you see an
unnecessary amount of 404 traffic to the web servers, I say we just do that.
Jonathan
From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org> |
Cc: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, "w^3" <pgsql-www(at)lists(dot)postgresql(dot)org> |
Subject: | Re: missing files because versioning? |
Date: | 2023-03-22 14:17:29 |
Message-ID: | CABUevEzL3dc4Z8pZdrYL-8CVbxkuG4X3a787atdUA3sNyWijKw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On Thu, Mar 9, 2023, 02:27 Jonathan S. Katz <jkatz(at)postgresql(dot)org> wrote:
> On 3/8/23 2:08 PM, Alvaro Herrera wrote:
> > Hi
> >
> > I just noticed that opening www.postgresql.org under Chromium's DevTools
> > mode shows these three errors in the console:
> >
> > DevTools failed to load source map: Could not load content for
> /media/js/popper.min.js.map: HTTP error: status
> code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
> > DevTools failed to load source map: Could not load content for
> /media/css/bootstrap.min.css.map: HTTP error:
> status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
> > DevTools failed to load source map: Could not load content for
> /media/js/bootstrap.min.js.map: HTTP error:
> status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
> >
> > It appears that we do have these files under /media/, but with version
> > numbers embedded in their names. Does this mean that we're missing a
> > symlink, or perhaps a redirect rule?
>
> These are used for debugging and the errors only show up if you load the
> console. We can silence the error that removes the line that tries to
> load the map files, or you can disable it in your local console i.e.
> uncheck "enable source map files".
>
> I have a patch ready that disables the actual load -- if you see an
> unnecessary amount of 404 traffic to the web servers, I say we just do
> that.
>
By definition it's unnecessary given we don't use it :-) it's not much
traffic on the server side though, but it certainly seems like something
worth optimizing for client side improvements if it's easy enough to do. At
least unless it turns out to be ugly or invasive against something else.
So it sounds like completing that patch is worthwhile.
/Magnus
>
From: | "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org> |
---|---|
To: | Magnus Hagander <magnus(at)hagander(dot)net> |
Cc: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, w^3 <pgsql-www(at)lists(dot)postgresql(dot)org> |
Subject: | Re: missing files because versioning? |
Date: | 2023-03-22 14:24:42 |
Message-ID: | f7ae0e74-dcaa-617c-7a93-538772cb84c2@postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On 3/22/23 10:17 AM, Magnus Hagander wrote:
> By definition it's unnecessary given we don't use it :-) it's not much
> traffic on the server side though, but it certainly seems like something
> worth optimizing for client side improvements if it's easy enough to do.
> At least unless it turns out to be ugly or invasive against something else.
>
> So it sounds like completing that patch is worthwhile.
I have it ready to go -- it's just removing:
"/*# sourceMappingURL=bootstrap.css.map */"
and the like from the minified files. I haven't posted it because it's a
1.5MB diff for a 3 line change (yay minified code).
But if there are no objections, I can push it.
Thanks,
Jonathan
From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org> |
Cc: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, "w^3" <pgsql-www(at)lists(dot)postgresql(dot)org> |
Subject: | Re: missing files because versioning? |
Date: | 2023-03-24 12:10:35 |
Message-ID: | CABUevEwyVwbKWE-O2x3SL7W2zyV9YdhjYEDL8ERKAFfF5d+8OQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On Wed, Mar 22, 2023 at 3:24 PM Jonathan S. Katz <jkatz(at)postgresql(dot)org>
wrote:
> On 3/22/23 10:17 AM, Magnus Hagander wrote:
>
> > By definition it's unnecessary given we don't use it :-) it's not much
> > traffic on the server side though, but it certainly seems like something
> > worth optimizing for client side improvements if it's easy enough to do.
> > At least unless it turns out to be ugly or invasive against something
> else.
> >
> > So it sounds like completing that patch is worthwhile.
>
> I have it ready to go -- it's just removing:
>
> "/*# sourceMappingURL=bootstrap.css.map */"
>
> and the like from the minified files. I haven't posted it because it's a
> 1.5MB diff for a 3 line change (yay minified code).
>
> But if there are no objections, I can push it.
>
>
Hmm. So it requires actually modifying the upstream import, that makes it a
lot more annoying for future imports etc. I don't like that idea at all.
Maybe the better option then is to just migrate over to using
assets.postgresql.org to increase the cache hits on them, stick the proper
map file in there, and rely on 304s.
//Magnus
From: | "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org> |
---|---|
To: | Magnus Hagander <magnus(at)hagander(dot)net> |
Cc: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, w^3 <pgsql-www(at)lists(dot)postgresql(dot)org> |
Subject: | Re: missing files because versioning? |
Date: | 2023-03-24 12:36:52 |
Message-ID: | 0e1f651f-3971-3cf7-0fc7-718b6f5cae26@postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-www |
On 3/24/23 8:10 AM, Magnus Hagander wrote:
> Maybe the better option then is to just migrate over to using
> assets.postgresql.org <http://assets.postgresql.org> to increase the
> cache hits on them, stick the proper map file in there, and rely on 304s.
That sounds like a better idea.
Jonathan