Hi Juraj,
What details are you looking at? And there wouldn't be any major difference. We have the same default IIS settings, and same system cache settings. We do have custom code but it doesn't deal with system cache and loading images.
We have separate Kentico installations on the same server but this installation is the only one having this problem. I tried taking the Kentico code and database from the working production server and copying it over the broken staging server, and the problem still existed.
I exported my cache settings (system -> performance)
Global settings, category "System > Performance"
General
Enable output compression: False
Server content caching
Cache page info (minutes): 10
Cache content (minutes): 10
Use progressive caching: True
Server file caching
Cache files (minutes): 10
Maximum file size to cache: 200
Redirect files to disk: False
Client caching
Client cache (minutes): 30
Allow client cache revalidation: True
Output caching
Enable output caching: True
Cache output in file system (minutes):
Output cache variables: username,True;sitename,True;lang,True;browser,True;cookielevel,True;deviceprofile,True;domain,False;viewmode,False
Enable partial caching: True
Partial cache variables:
Resources
Allow resource compression: False
Allow JavaScript minification: True
Allow CSS minification: True
CSS Styles
Resolve macros in CSS: True
Allow CSS from components: True
Combine CSS from components: False
Here is the two events in the event log that I exported.
EventID: 1636324
EventType: W
EventTime: 6/14/2017 11:17:32 AM
Source: Application_Error
EventCode: PAGENOTFOUND
UserID: 65
UserName: public
IPAddress: 10.5.2.82
Site: staging_ascensionathome_com
EventUrl: /404.aspx?aspxerrorpath=/CMSPages/getfile.aspx
EventMachineName: DDC-WEBSTAGE01
EventUserAgent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
EventID: 1636323
EventType: E
EventTime: 6/14/2017 11:17:32 AM
Source: Application_Error
EventCode: EXCEPTION
UserID: 65
UserName: public
IPAddress: 10.5.2.82
EventDescription: Message: Object reference not set to an instance of an object.
Exception type: System.NullReferenceException
Stack trace:
at CMS.Helpers.CacheHelper.GetUserCacheKey()
at CMS.Helpers.CacheHelper.GetBaseCacheKey(Boolean userName, Boolean cultureCode)
at CMS.Helpers.CacheHelper.get_BaseCacheKey()
at CMS.Routing.Web.AdvancedGetFileHandler.GetBaseCacheKey()
at CMS.DocumentEngine.GetAttachmentHandler.ProcessAttachmentCached()
at CMS.DocumentEngine.GetAttachmentHandler.ProcessRequestInternal(HttpContextBase context)
at CMS.Routing.Web.AdvancedGetFileHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
EventUrl: /img/favicon.ico
EventMachineName: DDC-WEBSTAGE01
EventUserAgent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
What else would you like me to export for these settings? Many of the issues are coming from the /getattachment but the get attachment doesn't appear to have a valid url with it.
Jeff