caching

Disable Cache-Control Header field in custom ASP.NET HttpHandler response

一个人想着一个人 提交于 2020-01-04 02:21:18
问题 How can I completely supress the output of the Cache-Control Header that is returned by my custom HttpHandler in ASP.NET? I know, I can change the header field by modifying response.Cache and response.Cache.SetCacheability, but that will only change the header field, not remove it. That is not what I want. I completely want to make no assumptions about the Cache-Control field and leave it up to the browsers policy. EDIT: The same holds true for HttpResponse.Charset. If no charset is set, ASP

Disable Cache-Control Header field in custom ASP.NET HttpHandler response

谁说我不能喝 提交于 2020-01-04 02:21:08
问题 How can I completely supress the output of the Cache-Control Header that is returned by my custom HttpHandler in ASP.NET? I know, I can change the header field by modifying response.Cache and response.Cache.SetCacheability, but that will only change the header field, not remove it. That is not what I want. I completely want to make no assumptions about the Cache-Control field and leave it up to the browsers policy. EDIT: The same holds true for HttpResponse.Charset. If no charset is set, ASP

Codeigniter caching issue when dealing with query string parameters

て烟熏妆下的殇ゞ 提交于 2020-01-03 18:39:50
问题 Greetings, I'm writing a CI web application which implements the standard file caching functionality as such: $this->output->cache(n); I'm using a combination of segments and query string parameters, and appear to be experiencing an issue as a result. What I'm seeing in my use cases and in the Output class code is that the caching is solely segment based. As such, http://www.example.com/segment/?q=foo and http://www.example.com/segment/?q=bar are treated as identical requests. Does anyone

Workaround for LINQ to SQL Entity Identity Caching and Compiled Query Bug?

↘锁芯ラ 提交于 2020-01-03 18:22:33
问题 I've come across what appears to be a bug in linq to sql where identity caching does not work when performing primary key queries inside of a compiled query. I wrote the following sample to demonstrate the usage of identity caching. It only executes one call to the database the first time it's hit, every time after that it retrieves the customer entity from the data context's cache. for(int i=0; i<10; i++) { DataContext.GetTable<Customer>().Single(c=>c.Id == 1); } Unfortunately, when I

Workaround for LINQ to SQL Entity Identity Caching and Compiled Query Bug?

孤者浪人 提交于 2020-01-03 18:21:55
问题 I've come across what appears to be a bug in linq to sql where identity caching does not work when performing primary key queries inside of a compiled query. I wrote the following sample to demonstrate the usage of identity caching. It only executes one call to the database the first time it's hit, every time after that it retrieves the customer entity from the data context's cache. for(int i=0; i<10; i++) { DataContext.GetTable<Customer>().Single(c=>c.Id == 1); } Unfortunately, when I

How can I invalidate a page in the browser cache from the client side?

会有一股神秘感。 提交于 2020-01-03 17:47:41
问题 I need the client (using javascript) to invalidate a page it has and essentially fetch a new version? I thought I could do it all with headers: Invalidating cached content, If-Modified Headers? If there NO way to have the browser refresh its current cached version, with out making a new request (via a new URL) ... so that the same original URL request could be used to see the updated content? 回答1: You can't do that with javascript, to solve your problem or use method POST instead of GET or

How to modify Internet Explorer temporary internet settings with registry?

倾然丶 夕夏残阳落幕 提交于 2020-01-03 17:35:12
问题 I have been looking through registries for hours and can't seem to find the one that controls the Internet Explorer Temporary Internet File settings. I want to change from Automatic to something else. 回答1: HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings DWORD called SyncMode5 0 = Never 2 = Every time you start internet explorer 3 = Every visit to the page. 4 = Automatically Found it here - first result if you Google "temporary internet files check for newer registry". Tried

Using a mix of AppFabric local cache and server cache

寵の児 提交于 2020-01-03 16:49:03
问题 I'm just starting out using AppFabric... My application is in healthcare - we have about 15000 users of the system and they access patient information in bursts (e.g. think of a team of nurses/doctors accessing a patient when they are hospitalized). What I'd like to do is cache certain items (e.g. patient demographics info) in memory and other items (e.g. labs, medications, diagnostic imaging, reports) on the cache host server. The underlying data comes from various 3rd party systems, some of

Using a mix of AppFabric local cache and server cache

前提是你 提交于 2020-01-03 16:48:50
问题 I'm just starting out using AppFabric... My application is in healthcare - we have about 15000 users of the system and they access patient information in bursts (e.g. think of a team of nurses/doctors accessing a patient when they are hospitalized). What I'd like to do is cache certain items (e.g. patient demographics info) in memory and other items (e.g. labs, medications, diagnostic imaging, reports) on the cache host server. The underlying data comes from various 3rd party systems, some of

Cache home page for non-authenticated users in ASP.NET MVC 3

跟風遠走 提交于 2020-01-03 16:06:04
问题 My website have a home page, and I would like to cache that page for anonymous users, and set it as "private" for authenticated users (so they save it on their computers, nowhere else). So, if the user is anonymous I want to save the page in the server cache, and also in the browser cache using Cache-control:public, max-age=60 and Vary:Cookie , so if the browser gets authenticated and send a cookie, the browser won't reuse the former stored page. If the user is authenticated, then I do not