caching

Are elements cached or not?

Hello, When I check with Privoxy what my browser downloads from one site, it seems like all the elements that make up the page (CSS, JS, icons, etc.) are redownloaded every time, ie. the browser doesn't cache them (Sorry, new uses aren't allowed to include URLs): <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <TITLE>My S...

Caching ListView data a viable option?

Here's my scenario: 1) User runs search to retrieve values for display in ListView via LinqDataSource. 2) They click on one of the items which takes them to another page where the details can be examined, further drill-down can happen, etc. 3) User wants to go back to the original ListView results to select another item for inspection. ...

mod_deflate on apache causing browser to do a 200 instead of 304?

I enabled mod_deflate on Apache 2 on an Ubuntu machine and noticed that my browser doesn't cache the compressed file types on page refreshes. I used firebug's net settings to check this and verified on another computer. Under mod_deflate if I compress css and js files, the browser makes a request each time. If I turn off mod_deflate, t...

Dispelling the UIImage imageNamed: FUD

I see a lot of people saying imageNamed is bad but equal numbers of people saying the performance is good - especially when rendering UITableViews. See this SO question for example or this article on iPhoneDeveloperTips.com UIImage's imageNamed method used to leak so it was best avoided but has been fixed in recent releases. I'd like t...

Portability of open(...O_DIRECT) in C?

In C file I/O, the O_DIRECT flag can be used to minimize cache effects for a file being open()ed. I understand that this is not a POSIX feature, has been present in the Linux kernel since version 2.4.10, and that Linus is opposed to the interface in general. Under NetBSD, it seems to work as advertised. Example call: int fd = open(f...

How to Cache InputStream for Multiple Use

I have an InputStream of a file and i use apache poi components to read from it like this: POIFSFileSystem fileSystem = new POIFSFileSystem(inputStream); The problem is that i need to use the same stream multiple times and the POIFSFileSystem closes the stream after use. What is the best way to cache the data from the input stream an...

Caching a binary file in C#

Is it possible to cache a binary file in .NET and do normal file operations on cached file? ...

Using MediaTracker to cache images in Swing Application

I have a Swing based financial ticker, that will display a financial symbol the price movement and an arrow for either up or down for each counter / company. This ticker can have a lot on counters (up to 100), and see the need to cache the images symbols to boost performance. I have tried following this article but fail to understand i...

I am using rails appln with Ext-JS as frontend and require help for compression

I have a rails appln which uses ext-js for front end. I have no problem in running the application. But since ext-all.js is bulky, it takes more time to load. I tried to build a custom ext-js but did not make much of a difference in size of the ext js script. I was trying with rails cache since i use rails 2.x. For normal js files, it...

Does WeakReference make a good cache?

Hi, i have a cache that uses WeakReferences to the cached objects to make them automatically removed from the cache in case of memory pressure. My problem is that the cached objects are collected very soon after they have been stored in the cache. The cache runs in a 64-Bit application and in spite of the case that more than 4gig of mem...

Substitution Control and Cache Location

If I use Substitution control in asp.net page, and also add the following directive to the page: <%@ OutputCache Duration="7200" VaryByParam="None" Location="Any" %> Would the location attribute be ignored, since using Substitution control on a page makes the page cacheable only on the server? ...

How to tell MVC not to cache an aspx or ascx?

In webforms I would do something like this in the OnInit method, but where (and how) could I do the same type of thing using MVC? Response.Cache.SetCacheability(HttpCacheability.NoCache) ...

Clear cache in SqlDataSource

I need to manually clear the cache on a SqlDataSource with caching enabled. I've tried setting EnableChaching = false, and CacheDuration = 0 (as well as = 1) and none seem to expire the content already in the cache - although they do seem to prevent new SELECTs from being cached. How do I manually expire that cache? Thanks. ...

How can I force a hard refresh (ctrl+F5)?

We are actively developing a website using .Net and MVC and our testers are having fits trying to get the latest stuff to test. Every time we modify the style sheet or external javascript files, testers need to do a hard refresh (ctrl+F5 in IE) in order to see the latest stuff. Is it possible for me to force their browsers to get the la...

XSLT Cache problems

I'm trying to install this PHP module from NYTimes (http://code.nytimes.com/projects/xslcache) I unfortunately am falling at the last hurdle. I've installed it, added to my php.ini, but I am getting this error when running in my PHP code. Fatal error: Class 'xsltCache' not found in... My php code is as described by the NYTimes websit...

Where to download the assembly that contains NHibernate.Caches.Prevalence.PrevalenceCacheProvider, NHibernate.Caches.Prevalence?

In the nhibernate doco is states that to use the prevalence cache use the provider class “NHibernate.Caches.Prevalence.PrevalenceCacheProvider, NHibernate.Caches.Prevalence” https://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/performance.html#performance-cache Where do I go to doanload the assembly that contains this typ...

What can cause a page to lose its viewstate when doing a browser back?

I have a page which the user gets shown when he wants to create a new or edit an existing document. There are two UserControls on the page. One simple DatePicker and a more complex grid. After filling out or editing the data he then can press continue which brings him to the review page where he can decide to really create or update the ...

How do I create a row specific sql cache dependency?

I want to use data caching on my .net C# application. So far I added data caching and added sql cache dependencies on specific tables. But thats not good enough. These tables will be updated too frequently but not relevant to a lot of the cached objects. This will make the data caching almost useless because it will be flushed to frequen...

What would cause Rails page caching to stop working?

I've got a Rails app that has stopped caching somewhere along the way, and I'm not sure which revision along the way might have stopped it from working. I'm under the impression that page caching, when working properly, should never even hit Rails if it finds the cached file. However, when loading my page and monitoring production.log, ...

ASP.NET Cache - circumstances in which Remove("key") doesn't work?

I have an ASP.NET application that caches some business objects. When a new object is saved, I call remove on the key to clear the objects. The new list should be lazy loaded the next time a user requests the data. Except there is a problem with different views of the cache in different clients. Two users are browsing the site A new ...