[Radiant] Styles 'n Scripts Extension Erros

Chris Parrish chris.parrish-forummail at swankinnovations.com
Tue Jun 3 12:36:15 CDT 2008


Jay Levitt wrote:
>
> Yep, that works too!

Good.  Let me know if anything changes.

BTW, for others reading the list, you will need to clean out the old 
cache to get the new date format to take (as Arik mentioned).  This is 
done automatically whenever you save any asset (javascript or stylesheet).

>
> For what it's worth, I am seeing a Flash of Unstyled Content (FOUC) 
> using Firefox 3 nightly on a Mac.  However, I see that with both your 
> fix and mine, and both directly through thin and through Apache, and 
> it's most likely a client bug.  Just thought I'd mention it in case 
> someone else sees it too.
>
> I didn't see the FOUC with a "native" Radiant stylesheet, but I only 
> had it set up for an hour in that config, so that doesn't mean much.  
> It happens about 1/3 of the time if I refresh the screen.  (Site: 
> http://www.distantmusic.com)
>

I'm not using FF3 at all so I can't help you there but I am seeing some 
interesting headers from your server...

First of all, for stylesheets.  Here are the headers from three GETs 
that I performed on http://www.distantmusic.com/css/default

  Date: Tue, 03 Jun 2008 16:36:37 GMT
  Server: thin 0.8.1 codename Rebel Porpoise
  Last-Modified: Mon Jun 02 15:59:23 UTC 2008
  Etag: "8b65d344a52c62c15ea473249b821741"
  X-Runtime: 0.00222
  Content-Type: text/css; charset=utf-8
  Content-Length: 2486

  200 OK


  Date: Tue, 03 Jun 2008 16:57:29 GMT
  Last-Modified: Mon Jun 02 15:59:23 UTC 2008

  Date: Tue, 03 Jun 2008 16:58:08 GMT
  Last-Modified: Mon Jun 02 15:59:23 UTC 2008


The 2nd and 3rd I obviously trimmed to show the important stuff.  They 
were from a refresh and hard refresh via FF 2.x

So, the parts I'm interested in:

   1. The Last-Modified date is not in the httpdate format (should be
      formatted just like the Date header and should state GMT -- not UTC)
   2. Your server is not sending a Status: 304 Not Modified header (this
      might be related to the formatting issue above)


So this makes me wonder whether or not v0.4.1 is working.  Have you 
cleared out the text_assets cache (see above)?


Just FYI, here's the same analysis for your homepage:

  Date: Tue, 03 Jun 2008 16:56:28 GMT
  Server: thin 0.8.1 codename Rebel Porpoise
  Last-Modified: Tue, 03 Jun 2008 16:56:01 GMT
  Etag: "21658f01a2ea4d561d1d0747824ee38f"
  X-Runtime: 0.00482
  Content-Type: text/html; charset=utf-8
  Content-Length: 1176

  200 OK


  Date: Tue, 03 Jun 2008 17:10:01 GMT
  Last-Modified: Tue, 03 Jun 2008 16:56:01 GMT


  Date: Tue, 03 Jun 2008 17:11:25 GMT
  Last-Modified: Tue, 03 Jun 2008 17:10:02 GMT


Two points here:

   1. I'm not seeing a 304 here either.  So could this be a server
      config issue?
   2. I like seeing the render time difference that SnS affords



-Chris



More information about the Radiant mailing list