caching

Does any asp.net data cache support background population of cache entries?

We have a data driven ASP.NET website which has been written using the standard pattern for data caching (adapted here from MSDN): public DataTable GetData() { string key = "DataTable"; object item = Cache[key] as DataTable; if((item == null) { item = GetDataFromSQL(); Cache.Insert(key, item, null, DateTime.Now.A...

ConcurrentDictionary as static cache

I'm thinking about using class (singleton) with collections implemented using ConcurrentDictionary. This class will be used as a cache implementation (asp.net / wcf). What do you think about exposing these collections explicitely from such class vs exposing just e.g. 3 methods (get,add,clear) for each of them (using safe methods from CD...

How do I tell a client to cache generated code or not?

I have a scenario where I have a central file management interface which handles security and the serving of files such as images, pdf documents and the like. When a user accesses this say as the target of an image, it validates the security for that user and then returns the file, bytes, etc. What I'd like to do is tell the client onc...

Server side caching for Java/J2EE application

Here is my situation: I have J2EE single page application. All client-server communication is AJAX based with JSON is used as format to exchange data. One of my request takes around 1 min to calculate data required by client. Also this data is huge(Could be > 20 MB). So it is not possible to pass entire data to javascript in one go. So f...

How can I enable caching in an EntityDataSource control?

I have three dropdowns, which are bound to the same EntityDataSource control. This results in three identical queries of my database for the data. I have looked for some way to enable caching on the EntityDataSource control, but it doesn't seem to be there? Am I missing something? Am I going to have to roll my own databinding instead...

Apache mod_expires question

Hi Folks, I'm really confused by all that caching stuff. I'm trying to setup mod_expires to reduce the number of HTTP Requests from my website to the server. I did well so far, I installed mod_expires and wrote a little .conf file from the instructions on http://httpd.apache.org/docs/2.0/mod/mod_expires.html. Now, for instance, all my...

How to move webView cache to SD?

I've seen some apps like dolphin browser (not the HD version, the normal one) utilizing a cache-to-sd for webview but i can't seem to figure out how to do this, does anyone know how to do this or point me in the right direction? Any help is greatly appreciated! Thanks :) ...

List of cached objects (including primary/secondary location) by key in AppFabric cache

I have AppFabric installed and working great caching my ASP.Net Sessions. I have 3 W2k8 Enterprise servers as my cache hosts. I created my cache with the Secondaries=1 option. I'm trying to test the High Availability option. In order to do this, I would like to login to my website, find the cache server that has my session and unplug...

Security considerations for an ASP.Net web application that will be used on a public computer or kiosk

I have an application that can be used without authentication on computers in public locations. It's a simple four page application that allows users to apply for a marriage license. Some offices will have a public computer kiosk where applicants can fill out their own information before proceeding to the clerk. They can also do so at ho...

How asp.net MVC's cache and Firefox's cache work ?

I use the following code to write cache header on *.png requests: response.Buffer = false; response.BufferOutput = false; // Emit content type and encoding based on the file extension and // whether the response is compressed response.ContentType = MimeMapping.GetMimeMapping(physicalFileP...

User hits mouse back button - browser ignores cache settings?

I need to make sure when the user hits back with, for example, the mouse, the browser doesn't instantly load the page from the cache and instead runs the associated code again. This is what my .htaccess looks like. It appears to be just Firefox that is ignoring the cache settings. <IfModule mod_expires.c> ExpiresActive On # Expir...

Favorite tools for monitoring cache for windows?

Hi, I am trying to profile my application but apparently it is too large for the profiler to even process. I am using IBM Quantify and suspect the same problem will show up if I try to use a different profiling tool. So I'm looking for a program that will monitor cache and i/o activity and performance that will run in the background an...

Chrome doesn't cache images/js/css

When Chrome loads my website, it checks the server for updated versions of files before it shows them. (Images/Javascript/CSS) It gets a 304 from the server because I never edit external javascript, css or images. What I want it to do, is display the images without even checking the server. Here are the headers: Connection:keep-alive ...

Can anyone explain the different Perl Cache implementations?

Hi all: There's a bunch of different Cache implementations in CPAN. I'm using Cache::File (because it is installed on my operating system) but I also see references to File::Cache, Cache:FileCache, Cache::Cache, and so on. Many appear to be implementations of "the cache interface" which appears to be either module "Cache" or "Cache::Ca...

cache file model cakePHP

cache model files in app\tmp\cache\models\ I set config Cache::config('default', array( 'engine' => 'File', 'duration' => 3600000, 'serialize' => false ) ); why model seem only cache in 3s , if > 3s it reloading model. ( because my app loading >4s if i dont cache , if I refresh page in <3s ...

IIS 7 Completely Disable Caching

No matter what I do iis still caching my php files. I unchecked all caching options and rechecked configuration file and it seems okay. How should I completely turn off all kinds of caching? By the way my php file is quite simple its just echo "somestring" ...

Is it redundant to put web.config appSettings values into the Cache object?

I thought I would put those settings into Cache and then invalidate them if the web.Config file changes. Reading some articles make it seem that this is completely unnecessary. ...

Using standard Confluence caches when developping a plugin

I am developping a plugin for Confluence (version 2.10). My plugin has some expensive process that would benefit a lot from caching. I have implemented a proof of concept with a simple HashMap as a cache. Now I need to put a real cache in place. I'd like to integrate my caches with the standard Confluence caches, so they could be manage...

Stop browser scripts caching in GWT App

I have a GWT app deployed onto our client's machines. As an ongoing development alongside, we have to release new improved versions of the application fron time to time. Everytime we release a new version we often run into the problem where the client's browser has cached the old scripts scriptsand for a while it behaves strangly as the ...

Web Development -- Not Having to Clear your Cache Each Time

Working with sensitive files that require the cache to be cleared each time... how do I tell Firefox and Chrome to clear my cache each time I refresh the page and/or not cache to begin with? Many thanks! ...