Questions tagged [cache]

A location or process for storing of transitory or temporary data in order to improve application or system performance.

400 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
2 answers
3k views

OpenLDAP proxy cache not retrieving entries

I need to set up a local LDAP proxy cache which connects to our central Active Directory server. OpenLDAP Proxy Cache looks just like the thing. But following the manpages as closely as possible, I am ...
Martin Melka's user avatar
5 votes
0 answers
1k views

Client-side caching when using CSP with nonces in nginx - how do you use weak caching validators/etags?

I'm using nginx's expires directive; its etag directive as well as the Last-Modified header (if I understand correctly) are on by default. In order to allow specific inline JavaScripts when using ...
Christian's user avatar
  • 151
4 votes
0 answers
780 views

Copy nginx cache between two servers

I have a nginx caching server with at least 2tb of cache files at any moment, i need to migrate this server to another hosting provider but none of my clients can handle that traffic without cache. ...
Leandro Ferreira's user avatar
4 votes
0 answers
441 views

REQUEST CACHING IN NGINX

I am trying to cache my requests in nginx. I have connected my django server as upstream. Now, I am trying to cache my requests. proxy_cache_path /var/cache/nginx/ keys_zone=one:10m; location / { ...
Luv33preet's user avatar
4 votes
1 answer
2k views

Linux - Disk / Filesystem as a LRU Cache (with transparent expiry)

I have a case where I'd want to use local disk as a LRU cache for (hot) files from a separate web service (something like S3). If the file doesn't exist on disk, the file is read over the internet, ...
fiskfisk's user avatar
  • 151
4 votes
0 answers
550 views

slabtop command doesn't work

I've inherited Sys Admin duties on webserver and I'm a bit of out my element, but learning as I go. My newest issue is all the of the ram has been gobbled up and I'm not sure where it has gone. free -...
WesleyJohnson's user avatar
4 votes
0 answers
2k views

400 bad request from a proxy cache

So we have an nginx proxy cache that is used to maintain uptime even if npm goes down. On occasion this server (noticeably once every few months) starts returning 400 bad request for every response ...
Parris's user avatar
  • 331
4 votes
0 answers
5k views

LSA SID cache keeps old entry for renamed domain user - why?

I have a question about LSA SID cache on a domain member server. Recently I run into the issue when some users after their name was changed in AD has difficulties accessing application I support, and ...
Mike's user avatar
  • 1,315
4 votes
2 answers
1k views

Caching DNS server returns invalid ip address for external lookups

I'm trying to resolve a DNS issue and am running short of ideas. Google doesn't seem to be helping, either. When I use my local caching name server to resolve external host names, it always returns ...
otto schreibke's user avatar
4 votes
0 answers
1k views

How do I clear cached SSL state data from schannel?

I'm trying to clear SSL state data for a normal TLS session (no client certs are involved) for Outlook when connecting to a SSL based CAS server. How do I clear the SSL state of SChannel? Does the ...
makerofthings7's user avatar
3 votes
0 answers
340 views

Why does Nginx's new files' permissions supersede my default ACL

I have issues setting up proper permission on cache directory on a site that run on Debian 10 with Nginx and php-fpm. I have an user 'myuser' which home is /var/www/mydomain.tld The strucure of the ...
Waam's user avatar
  • 131
3 votes
1 answer
2k views

NGINX max_size and keys_zone, could not allocate node in cache keys zone

We have a very dynamic and high-traffic application and are using NGINX caching with dynamic URLS. We want to cache these URLs for repeated requests. We have run into an issue a couple times while ...
dlrust's user avatar
  • 715
3 votes
0 answers
265 views

Don't cache small responses with nginx

I am using nginx for reverse proxy with caching. And I have a backend that sometimes returns 200 HTTP code for failed requests, with just an empty set for a body. I'd like to configure nginx in a way ...
Sergey's user avatar
  • 948
3 votes
0 answers
598 views

PrivateBytesLimit in web.config doesn't change cache EffectivePrivateBytesLimit

Our web-server has a worker process (w3wp.exe) that uses too much memory. Following this answer I tried to limit how much memory the process can use for caching in the web.config: <system.web> ...
Hans Vonn's user avatar
  • 131
3 votes
0 answers
475 views

Create a public Windows 10 P2P update cache?

I work for a PK-12 public school district in the USA, in a very rural area with a large number of low-income families, and where many rural families only have 0.5 to 1.5 megabit DSL. In some cases ...
Dale Mahalko's user avatar
3 votes
0 answers
1k views

How can I ensure that Nginx will never cache certain error statuses?

I have been noticing some 406 statuses being cached in my Nginx proxy instance, and I want to be sure that this does not happen again. I discovered one possible cause is that somebody had set a ...
DKing's user avatar
  • 826
3 votes
0 answers
1k views

Which are possible hierarchies for bcache, mdadm RAID and LVM?

Assuming I want to use bcache for caching, mdadm for RAID (1) and LVM for partitioning (and that I don't care that there might be performance drawbacks due to many levels of I/O and device management ...
Kalle Richter's user avatar
3 votes
0 answers
377 views

lvm PV on top of dm-cache

I am running a private cloud (opennebula, KVM) where I am running VMs both directly using LVM Logical Volumes and using disk images on a file system (one is faster, the other is easier to migrate), ...
P.Péter's user avatar
  • 639
3 votes
0 answers
854 views

Varnish cache objects expiring while in stale-while-revalidate grace period

I have added Varnish 4.0 to a CentOS 6 server running cPanel to cache a website I have developed. I am trying to implement stale-while-revalidate to ensure that all users are served a cached version ...
Alex H's user avatar
  • 31
3 votes
1 answer
926 views

How do I download a new Ubuntu release without installing it?

I want to upgrade - in this case, from Ubuntu Trusty to Vivid (going through Utopic if necessary) but I'd really rather do the upgrade in two parts, doing a dry run to get all the packages locally ...
Glyph's user avatar
  • 251
3 votes
2 answers
5k views

Is it really possible to use PHP sessions for authentication with nginx fastcgi cache?

I have recently switched an opencart instance from Apache+mod_php to nginx+fastcgi+php-fpm. I have been trying to leverage caching for most pages through fastcgi-cache. Unfortunately, many users ...
Bretticus's user avatar
  • 175
3 votes
0 answers
188 views

Do we get a access.log entry for content served from cache in nginx

For a configuration that looks like http { proxy_cache_path /etc/nginx/cache keys_zone=one:10m; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; server { ...
divyenduz's user avatar
  • 131
3 votes
1 answer
1k views

squid doesn't cache anything at all

I have configured squid for anonymous search and cache proxy. Initially it was working well, after two weeks it becomes slow(loading web page become slow) then again I had to looked into squid. I saw ...
niren's user avatar
  • 273
3 votes
0 answers
3k views

NFS showing files in directory, but can't open or stat

I'm using a network of Linux (Debian Squeeze on kernel 2.6.32) machines, sharing files using NFS (v3). The scenario is that a process running on client A will create a file through NFS on file server ...
user79126's user avatar
  • 469
3 votes
1 answer
3k views

IIS caches things, even when I disable output caching

I have an IIS web server on my local network for development purposes, and I want to disable all caching mechanisms. IIS seems to be caching everything, even when I disable output caching like so: I ...
starbeamrainbowlabs's user avatar
3 votes
0 answers
644 views

How to disable Nginx web pages caching to avoid ISP cache?

My problem is simple. I did some changes on a homepage this morning (add some sentence) and it did not appear in my browser. I cleared symfony cache, nginx cache, apc cache, restart apache, restart ...
MaximeBernard's user avatar
3 votes
0 answers
942 views

How can I optimize the Windows file cache so flushing a file is faster?

I have a third-party, object-oriented database server running on a Windows Server 2003 x64 machine with 24 GB of RAM. Except for some system processes and monitoring tools, the database server is the ...
PersonalNexus's user avatar
3 votes
1 answer
1k views

mod_rewrite in .htaccess causes header not to be applied - why?

Excerpt from <VirtualHost *:80> section in httpd.conf (goal: set Cache-Control for all JavaScript files): <LocationMatch "\.js"> Header set Cache-Control "max-age=290304000, public" &...
feklee's user avatar
  • 505
3 votes
1 answer
122 views

Loading of Home taking too long

We have a shared storage from NetApp mounted onto about 80 systems (all running Ubuntu 10.04 64 bit). These days there is some problem with the loading of user homes onto the lab machines (...
Jatin Kumar's user avatar
3 votes
1 answer
472 views

Deploy a GWT app within IIS 7

I am currently trying to configure an ASP.net Web Application through Web.config, to host a GWT WebApp in a specific folder. I've managed to configure the mimeMap for the .manifest file extension in ...
dsimao's user avatar
  • 131
2 votes
0 answers
148 views

Cache writes with cachefilesd (non-shared mode) on Linux

I'm using cachefilesd as a read-cache for an NFS share. This is simple to set up and does what is says. However, I would like to also cache written files. I.e., if I write some.file, and then I read ...
Ostheer's user avatar
  • 41
2 votes
0 answers
442 views

cachefilesd - how to ensure file is copied from local cache?

I have setup cachefilesd and to check if it is correct I verified following: cachefilesd service is running NFS storage is mounted with -o fsc and able to see FSC set to yes in /proc/fs/nfsfs/volumes ...
astre's user avatar
  • 121
2 votes
0 answers
159 views

Pagespeed delivers content with gzip header but not gzip content all out of nowhere?

All out of nowhere our website did not longer load CSS. The Chrome browser console showed Error 330 (net::ERR_CONTENT_DECODING_FAILED) With the httpie tool a similar error: $ http "https://www....
Alex's user avatar
  • 726
2 votes
0 answers
472 views

Data corruption after dmsetup suspend, reload, resume, and re-suspend

Consider the following series of events for a device-mapper crypt target, test, holding an ext4 filesystem. These three commands swap out the crypt target's table with a new (dummy) table. This ...
forest's user avatar
  • 462
2 votes
1 answer
635 views

Nginx - disable rate limiting for cached resources

I have an application does full text search on my product database. Certain searches are suggested to the user and are much more common than other searches. As full text searches are expensive, I'm ...
nwarp's user avatar
  • 143
2 votes
1 answer
2k views

How to automatically purge cache with nginx using the http-cache-purge module (ngx_http_cache_purge_module.so)

I am running an Ubuntu 20.04 LEMP server with wordpress installed on it. I am using the nginx.org repository for nginx, but I compiled the cache-purge module (ngx_http_cache_purge_module.so) from ...
DanRan's user avatar
  • 123
2 votes
1 answer
889 views

sssd credential chaching does not work

I set up an Centos7 using sssd as authentication system. The user identies are provided by files (passwd/group, managed by ansible), auth is done via krb5 (provided by active directory). The sssd.conf ...
HalexMg's user avatar
  • 21
2 votes
0 answers
422 views

preventing big HDD's to spinup by using (small) SSD's as cache

I want to build a NAS that is as quiet, efficient and cool as possible. In this scenario, I have the following parts: -4 SATA connections to the motherboard. -2 Hard drives, one is 1TB, the other is ...
Cedric's user avatar
  • 21
2 votes
1 answer
85 views

Predictive HTTP Caching

A bit of background I have ~150 scripts that directly or indirectly pull data from an IBM Cognos instance that I have no control over. I do not have access to the Cognos API, so the eventual source of ...
9072997's user avatar
  • 211
2 votes
0 answers
272 views

Nginx to cache pages only for bots/spiders

Imagine we have an online store site. It contains list of items to sell, and prices associated with it. Due to messy math behind price (they used to offer discounts based on user history, and we can't ...
Alexander's user avatar
  • 834
2 votes
2 answers
3k views

Nginx proxy cache not working with php session

Server administration is absolutely not my domain - unfortunately I am stuck with setting up a server that has Nginx as static asset server and apache behind with php-fpm for serving PHP pages. I'm ...
setcookie's user avatar
  • 121
2 votes
2 answers
1k views

nginx caches responses longer than max-age

I've configured Nginx to cache all responses from an upstream server that always returns Cache-Control: public, max-age=1 but nginx seems to cache the response for 2 seconds. How come? More ...
Assaf Lavie's user avatar
2 votes
0 answers
1k views

How can I match proxy_cache_key in nginx with the path in proxy_pass if multiple slashes are used?

I'm receiving request in the form http://host.example/foo/ or http://host.example/foo// The requests are send to a backend server with proxy_pass http://backend; and cached with the key ...
nedt's user avatar
  • 121
2 votes
0 answers
772 views

dnsmasq not caching for non-public dns servers

I tried to configure my dnsmasq to forward requests to different dns servers depending on the domain. server=/a.example.org/192.168.a.a server=/b.example.org/b.b.b.b server=/c.example.org/8.8....
greyjedi's user avatar
2 votes
1 answer
2k views

nginx proxy_hide_header still caches header

I'm using nginx with proxy_cache to cache some pages, I have set up a separate refresh location block to use for refreshing a particular cache entry. I have tested this and it works fine for ...
GoldnEagle's user avatar
2 votes
0 answers
925 views

nginx not returning updated headers from origin server on conditional GET

I have nginx and its cache working as expected apart from one minor issue. When a request is made for the first time it hits the origin server, returns a 200 and nginx caches that response. If I ...
Jon's user avatar
  • 149
2 votes
0 answers
744 views

cache git clone requests through squid

Our build/ci server and developer workstations need to clone lots of repositories so we need to reduce time of downloading these repos. Is there any way to cache git clone request through squid or ...
Xesina's user avatar
  • 121
2 votes
0 answers
969 views

BIND cache dump file format parsing

I'm trying to analyze the contents of BIND's cache by looking into dump files, the ones generated by rndc dumpdb -cachedb. ; ; Start view _default ; ; ; Cache dump of view '_default' (cache _default) ...
André Fernandes's user avatar
2 votes
1 answer
306 views

Troubleshooting nginx caching for static assets

I have a Django website where users post images for the whole community to see (kind of like 9gag). I use Azure storage to save and serve the images. The webserver is an nginx reverse proxy + ...
Hassan Baig's user avatar
  • 2,545
2 votes
0 answers
42 views

Protect cached content in apache

I'm facing an issue where I have some cached contents in a disk and I want to protect it with a token url. I can protect my files via htaccess, once they are not cached (direct access), but now I ...
Lucas César's user avatar

1
2 3 4 5
8