Why does Orchard send a 404 response to the first request for some embedded resources?

Topics: General
Apr 30, 2013 at 10:54 PM
Edited May 1, 2013 at 2:23 AM
Hi there,

We can reproduce the problem with these steps:
  1. Browse to the homepage of our Orchard site.
  2. Wait about 60-minutes.
  3. Browse again to the homepage, or just refresh.
  4. At this point, several embedded resource requests receive a 404 response.
  5. Wait about 1-minute.
  6. Refresh the homepage again.
  7. Now, the requests that received a 404 response instead receive the appropriate resources.
The resources that send a 404 are all part of themes or modules that we have created and that we then renamed. The first and second requests to the homepage have different URLs for these modules and theme. For instance:

First Request.

Image

Request One Minute Later, with Different URLs.

Image

In the second version of each of these requests, the theme name and the module name are different. Why is that? Does it have something to do with our having changed the name of the theme & module? Does the DB still have the old name? Why would the request address change?

We found that the Orchard database had records with the old theme name. So, we deleted those records.
DELETE dbo.Settings_ShellFeatureRecord WHERE Name = 'Bootstrap_GardenFaire'
DELETE dbo.Settings_ShellFeatureStateRecord WHERE Name = 'Bootstrap_GardenFaire'
We also deleted files in the IIS Temporary Compress Files folder.
"C:\inetpub\temp\IIS Temporary Compressed Files\orchard\$^_gzip_C^\INETPUB\ORCHARD\THEMES> > > > \BOOTSTRAP_GARDENFAIRE"

"C:\inetpub\temp\IIS Temporary Compressed Files\orchard\$^_gzip_C^\INETPUB\ORCHARD\MODULES\BIGFONTMAPS"
We then regenerated our warmup pages using Orchard > Dashboard > Settings > Performance. We don't know yet whether this will resolve the problem or not.

Cheers,
Shaun