htaccess cache based on version number in meta tag

Is it possible to cache the website files (images, html, css, js) based on your version number? In more detail: I would like to have a version number in my header of the html files. So when someone visit my website the files will be cached. But whe...
more »

2017-02-19 22:02 (1) Answers

Tumblr sharing validation

I have a couple of questions about sharing to Tumblr. Does anybody know is there any validator for Tumblr sharing url similar to Facebook https://developers.facebook.com/tools/debug/sharing ? Is there any way to drop cached version of shared page f...
more »

2017-02-19 12:02 (0) Answers

Wildcards in ServiceWorker / Cache API

I am using ServiceWorker and in dev mode works perfectly, my problem is that in production mode my bundle name is generated using hash, e.g. 1234das3123ad5.bundle.js, so the service worker is not caching it. My sw code looks like: self.addEventListe...
more »

2017-02-19 08:02 (1) Answers

Direct Mapped Cache Hit/Miss

I'm a bit stuck on this, a slide from my lecture. I'm trying to figure out how I know if the address trace leads to a miss or a hit. I'm also a bit fuzzy on what exactly the tag and the offset does. All I know so far is that the tag has to match,...
more »

2017-02-19 06:02 (0) Answers

Cache dynamic JavaScript generated by PHP

I use JShrink with a custom function to combine 8 uncompressed JavaScript files to a single compressed (minified) one, like this: <?php // Filename: js.php header('Content-type: text/javascript'); require_once '../JShrink.php'; function concate...
more »

2017-02-18 22:02 (2) Answers

Column-wise matrix traversal in assembly

Disclaimer: I have absolutely no experience with assembly programming, hence this question. I want to write a program to traverse a matrix two ways, row-wise and column-wise, to demonstrate cache stuff for a presentation etc. The problem is, if I w...
more »

2017-02-18 20:02 (0) Answers

Swift: Load Images in UITable-View

I have a tableview with custom cells that contain a picture (user-avatar). I have implemented a simple solution for the cellForRowAt-Function with if let imgData = try? Data(contentsOf: imageUrl!), let img = UIImage(data: imgData) { ...
more »

2017-02-18 20:02 (1) Answers

Cache asynchronous function result in C#

I am reading the asynchronous function section in "C# in a Nutshell". One example is as follow: Suppose we need to handle a 'Download' button click event and we want to cache the download results. If we don't care about downloading the same website ...
more »

2017-02-18 14:02 (1) Answers

OutputCache not working correctly -> ASP.NET MVC5

My output caching doesn't appear to be working as expected This is a controller method to return the default page for my website. I have cached it for 40secs (test -> in live it is cached for much longer) [OutputCache(Duration = 40, Location = Outpu...
more »

2017-02-17 17:02 (1) Answers

Improve caching performance in Mule

I am using Anypoint 6.1 and Mule 3.8.1 and I'm finding problems with the performance and it looks like it is down to the cache scope. The cache is a managed store (so I can invalidate the cache when new data is loaded) and has the following values...
more »

2017-02-17 17:02 (0) Answers

Cache data outside of Application

Im trying to cache data that i get from a SQL Service, i tried using the Memory Cache Class from System.Runtime.Caching but it seems like the Cache is being emptied whenever i exit the Application. So my Question is, is there a way to Cache my Data...
more »

2017-02-17 16:02 (1) Answers

phpfastcache for caching dataset

I have a web application built using PHP and MySQL. Now the database is hitting the red line due to the load. I am trying to use phpfastcache to store set of data into redis and reduce the load on the DB. The data set is from multiple tables and may ...
more »

2017-02-17 16:02 (0) Answers

How to add values to cache

I am using file cache in yii2 framework. My question is Is it possible to add some extra value to cache without refresh the cacheFile.Suppose i create cache file for my products now on each entry i update cache file. I want to add just the new produc...
more »

2017-02-17 14:02 (1) Answers

Clearing cache breaks routing symfony

Is this supposed to happen? Let me explain. I have a pretty basic symfony project already deployed on a server in prod environment with a few basic objects created with generate:doctrine:entity. I used those entities to create views with the ...
more »

2017-02-17 14:02 (0) Answers

Cache is not cleared in Google Chrome

When I deploy the version I will add the number as query string with the JavaScript and CSS file like following? 'app/source/scripts/project.js?burst=32472938' I am using the above to burst the cache in the browser. But in Firefox, I am getting t...
more »

2017-02-17 12:02 (2) Answers

Web Tokens and HttpSessionState ASP

Good day, Is the following a good solution or is there alternative or is this bad. I have a ASP MVC client application and it talks to a HTTP API (also Microsoft but does not matter). In my client application I'm storing session data (HttpSessionSt...
more »

2017-02-17 10:02 (1) Answers

Crate join queries takes too much time

Pre Requirement : I need to find all the matching result in one query which is more than 40K results. Requirement : Two tables - product and product_category. I am trying to fetch all the products with matching category from product_category table. ...
more »

2017-02-17 07:02 (0) Answers

How does Service Worker handle cookies?

I know Service Worker doesn't have access to cookies yet, but how are cookies proxied when pages are served from SW caches? If I invalidate a cookie or change its value outside of the page and then try to read it from JavaScript inside the page, will...
more »

2017-02-16 23:02 (0) Answers

Symfony2 cached controller won't update

I'm quite new to PHP and have received some Symfony2 project to maintain. Now I've found out that when I update foo.html.twig, that page will not change until I perform the command console c:c -e prod. Until then the shown page will be foo.html_.twig...
more »

2017-02-16 23:02 (1) Answers

Optimized way to cache a list of results?

This is a question for PHP/Laravel + Redis, but I'm sure it can be extrapolated to other languages/frameworks. I'm working on an app that displays a results (either from a user initiated search or category listing). By default, we paginate 30 resul...
more »

2017-02-16 22:02 (1) Answers