If we use an aspx page with a Caching Profile, the server caches images that are loaded with the aspx page. So if ten clients load the same image through the aspx page (same url), for one client the image is gotten out of the db, for the nine others it is cached.
When we use a HttpHandler, this doesn't happen. The image is always fetche...
I have a website that uses SSL to allow users to enter sensitive data, but there is a large amount of static content that I do not want to be served up with each page request - several Javascript libraries combine to make up almost 1MB for example, which is a serious overhead with each request!
Everything I've read suggests that there i...
I am trying to add a rss feed into an HTML page. After some searching found something called simplepie.
On trying i get an warning
Warning: ./cache is not writeable.
Make sure you've set the correct
relative or absolute path, and that
the location is server-writable. in
xxx/inc/simplepie.inc on line 1780
On checking for t...
Short version question :
Is there navigator.mozIsLocallyAvailable equivalent function that works on all browsers, or an alternative?
Long version :)
Hi,
Here is my situation :
I want to implement an HtmlHelper extension for asp.net MVC that handle image post-loading easily (using jQuery).
So i render the page with empty image sources ...
Hi guys:
I asked a question a while back on here regarding caching data for a calendar/scheduling web app, and got some good responses. However, I have now decided to change my approach and stat caching the data in javascript.
I am directly caching the HTML for each day's column in the calendar grid inside the $('body').data() object, ...
Is this piece of code where I lock a part of the function correct? Or can it have use drawbacks when multiple sessions ask concurrently for the same Exam?
Purpose is that client that first asks for the Exam will assemble it, all next clients will get the cached version.
public Exam GetExamByExamDto(ExamDTO examDto, int languageId)
{
...
My HttpHandler looks like:
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/xml";
XmlWriter writer = new XmlTextWriter(context.Response.OutputStream, Encoding.UTF8);
writer.WriteStartDocument();
writer.WriteStartElement("ProductFeed");
DataTable dt = GetStuff();
for(...)...
Do you see database triggers / referential integrity rules being used in a way that changes actual data in the database (changing row w in table x causes a change in row y in table z)?
If yes, How does this tie-in with the increasing popularity of in-memory caching (memcache and friends)? After all, these actions occur inside the databa...
Hi,
I have a asp.net web application and I'm using cache (HttpRuntime.Cache) to save some stuff from db.
I also update db from time to time so that data in db does not match the data in my application's cache.
Is there any way how to clear my application's cache without modifying any source code or republishing the page?
I tried to r...
I'm clearing IE's cache programmatically using DeleteUrlCacheEntry() and I would like to verify that I did it correctly.
Should I expect the Temporary Internet Files folder to be empty after clearing the cache? (it isn't)
If not then what is the simplest way to determine whether the browser is using its cache when accessing a site?
...
I have a file located at [application]/config/routing.yml, when I change something in there, the changes aren't active. This probably has to do with the cache as when I go into that directory [cache]/[application]/prod/config the currently active file can be seen config_routing.yml.php.
The lifetime of the cache is generally 86400 secon...
I'm considering using an ObjectDataSource as an intermediate between my page controls and my data access layer & object model. Traditionally I have manually created the object and populate it via a series of findcontrol statements when I need to insert/update data in the database. I'm hoping that I can use the ObjectDataSource to marsh...
I've been trying to use the CacheManager for caching some http
requests but it failed every time with a nullpointer exception. After
some digging I believe I found out why:
CacheManager.getCacheFileBaseDir() always returns null so when I try
to use CacheManager.getCacheFile() or CacheManager.saveCacheFile()
they fail.
CacheManager.cach...
I need to build up a List<object> and cache the list and be able to append to it. I also need to be able to blow it away easily and recreate it. What is a simple way to accomplish this?
...
My website utilizes ASP. I have a link to a PowerPoint file within my website's file structure. The file is replaced every day with an updated version, but when users click on the link, the browser displays the cached version if they have visited before. How can I ensure that the updated version is loaded without asking the user to clear...
Hi
I used config given in this http://www.webtatic.com/blog/2008/04/page-level-caching-with-nginx/ for page level caching of php content the problem is that the cached page is saving in gzip format and it returning same gzip content to browser.
I need the o/p like this "12:15:37 12:15:47" (Its coming for 1st time when the page is not ca...
I'm producing an application with a few peculiar internal communication characteristics that make the usual suspects for data storage and transport (Qs and RDBMSs) ill-fitted. I'm wondering whether there is a product out there that matches the following characteristics:
all data put into it is peristent
all reads are delivered out of m...
Hi,
My question is about XML loading. I need to avoid xml caching.
On a web server, the technique is adding a random param to reload each time the XML file.
But on local testing (in Flash CS4 IDE, CTRL + Enter), the following lines are not possible :
var my_date : Date;
path = "toto.xml?time="+my_date.getSeconds()+my_date.getMillisec...
I have a RoR application (ruby v1.8.7; rails v2.3.5) that is caching a page in the development environment. This wouldn't be so much of an issue, but the cached page's A elements are incorrect.
I haven't made any changes to the development.rb file and I haven't knowingly added any caching commands to the controllers.
I've tried cleari...
Basically all pages on this site I am building cannot be accessed when the user clicks on "Back" (or with key control) in the browser, and the page should expire if one is trying to navigate back in history.
I put into Global.asax::Application_BeginRequest
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Cache....