I pre-generate 20+ million gzipped html pages, store them on disk, and serve them with a web server. Now I need this data to be accessible by multiple web servers. Rsync-ing the files takes too long. NFS seems like it may take too long.
I considered using a key/value store like Redis, but Redis only stores strings as values, and I susp...
We are working on a web application that is distributed across 3 load-balanced web servers. A lot of the data we retreive via NHibernate is stored in System.Web.Caching.Cache.
System.Web.Caching.Cache does a lot to increase the responsiveness of an application, but there are a few issues that we don't exactly know how to resolve, such ...
I have a method whose output I'll be caching. It takes four parameters; string, string, int, and WindowsIdentity. I need to create a cache key based on those four parameters. Is it best to:
Concatenate them all together as strings and use that key?
var key = string.Concat(string1, string2, int1.ToString(), identity.ToString());
Or
...
Hello,
I have just started to look at the caching block which sounds very promising but am having trouble getting it to work with a DataBackingStore. It works fine with a NullBackingStore but when I switch to data, I get the following error when trying to create the CacheManager from the CacheFactory:
The type
'Microsoft.Practices...
I have long wondered what is more efficient with regards to making better use of CPU caches (which are known to benefit from locality of reference) - two loops each iterating over the same mathematical set of numbers, each with a different loop body, or having one loop that "concatenates" the two bodies into one, and thus accomplishes id...
Hi,
I have EntityTypes generated from a database using Entity Framework 4. I would like to use Cache to store some of these EntityTypes for performance reasons. Is it safe to do the following provided that the object will be used for read-only actions:
context.Students.MergeOption = MergeOption.NoTracking;
var students = context.Student...
It's not clear to me from the descriptions of the cache manifest that I've read (e.g. http://www.w3.org/TR/offline-webapps/#offline and elsewhere) what this file does. I'll explain what I find to be unclear.
The heading name ("Offline Web Applications") suggests that the cache manifest is relevant only for offline scenarios; the cache ...
Does DataNucleus support Cache Coordination? If yes, how can I enable and use it?
I'm not actively using DataNucleus yet, but I want to consider it, if it supports Cache Coordination.
Background: Cache coordination is used by multiple cache instances to inform each other about changed entities (e. g. via JMS or RMI). Its purpose is to ...
Hi,
I have an application which I'm developing in GWT.
I've noticed that sometimes (I'm not sure it happens all the time) after compiling, and generating a new version, if I will try to access my program's URL from IE8 it will result in a 404 in my eclipse log.
I think this is because the browser caches the actual 1232dfsfda.html URL and...
Hi, this question might be available online but sorry that I cant find a solution that I understand. Can someone pls help me?
The situation is this, I would like users' browser to cache external .css and .js files. However, each time I made changes, I would want user's browser be able to load the updated external files instead of using ...
I've got my MVC application wired up so that the Repository Layer queries the LINQ to SQL classes, the Service Layer queries the Repository Layer, and the Controllers call the Service layer.
Basically I have code as follows
Repository
Public Function GetRegions() As IQueryable(Of Region) Implements IRegionRepository.GetRegions
...
I am trying to get a simple (all front-end) application working offline on ipad, but safari keep telling my that I am not connected to the internet.
I uploaded my cache manifest,
added AddType text/cache-manifest .manifest in my .htaccess
I use 1 ajax request, BUT, I store it in localstorage and I check navigator.onLine, should it be ...
I'm thinking about adding another static server to a web app, so I'd have static1.domain.tld and static2.domain.tld.
The point would be to use different domains in order to load static content faster ( more parallel connections at the same time ), but what 'troubles' me is "how to get user's browser to see static1.domain.tld/images/what...
I have a flex application about 2M need to send to browser, so I want the browser to reserve the file in cache forever unless I upgrade the version.
I have set the ETAG and last-modified tag in http reponse header, but sometimes, when the user click the refresh, the swf file still be reloaded.
So what http response header can I use to...
Hi guys, I'm trying to optimize my web application and unfortunately have ended up with a javascript file size of around 450K - that too after compressing [it would take a while for me to redo the javascripting but until then I have to go live] - I initially had made a number of small javascript libraries to work upon. And what I do is I...
Hi,
I don't quite understand how Google Analytics cookies work with Varnish.
Do pages that contain GA cookie not get cached?
Do I need to remove the GA cooke in vcl_recv?
If I do remove them, does that stop GA tracking visitors?
...
We have a server which needs to server multiple domains though varnish e.g. example1.com, example2.com and example3.com
Our current .vcl file looks like this:
sub vcl_recv {
set req.http.Host = "example1.com";
lookup;
}
How do I set the correct req.http.Host for the correct incoming request?
...
Hi
I have a page with an ajax page prowser.
On two slides an embedded player will play an mpeg or flv video file.
First time the page is viewed the file will be loaded and on slow internet connections it will stop-start since is is beeing showen and loaded at the same time.
Can I auto-cache the two files on page load so that the are ca...
If I use Microsoft.ApplicationServer.Caching.Client and Microsoft.ApplicationServer.Caching.Core assembly I get exception:
The type or namespace name 'ApplicationServer' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) .....\CacheUtil.cs
And I get Warning:
The referenced assembly "Microsoft.Applic...
Hello everybody,
So basically I've ran my site through ySlow and it has informed me that I should add Expires headers to some of the elements on my page to help with the caching. The page is mainly static content currently hosted on an Apache/2 server.
If it helps at all the site is here.
I'm not really sure how you alter the HTTP i...