Questions tagged [cache]
A cache is a local copy of a file that exists elsewhere. Caching can take place in the browser, on a dedicated machine on a network, or at an ISP.
291
questions
1
vote
1
answer
183
views
How to determine if APCu is overall lighter than Memcached in a usecase?
I would say that my personal website is at least currently a "small" website.
It is a MediaWiki-based all-core website without images at all and of about 750 webpages of generally no more ...
0
votes
1
answer
57
views
The old version of the website is still lingering on the Internet
I run a simple companion website to my book. To count the hits on the website, I use a simple PHP counter that is triggered by this command
<img src="counter.php?Identifier=name" height=&...
3
votes
1
answer
154
views
Flush cached selector in Adobe Experience Manager without flushing entire directory
How can I use selector based cache flushing in Adobe Experience Manager?
http://example.com/content/myapp/us/en.child1.xml
http://example.com/content/myapp/us/en.child2.xml
Lets say,we have xml's ...
33
votes
6
answers
61k
views
Headers to prevent 304/If-modified-since/HEAD requests
What headers should I be sending to outright stop all requests to the server after the content has been cached?
We have a very high latency server (Sigh, VMWare) so even sending a HEAD request to the ...
3
votes
1
answer
233
views
Will Google Optimize work with server side caching and a CDN?
My website is using WordPress + WP Rocket Cache plugin + Cloudflare CDN Cache. Will Google Optmize works with such a case? In my understanding, as Google Optimize will change the web page source file, ...
271
votes
42
answers
53k
views
Recovering a lost website with no backup?
Unfortunately, our hosting provider experienced 100% data loss, so I've lost all content for two hosted blog websites:
http://blog.stackoverflow.com
http://www.codinghorror.com
(Yes, yes, I ...
0
votes
0
answers
10
views
Could X-Cache: STALE affect Google rankings?
Could the presence of X-Cache: STALE response header decrease my Google rankings ?
I am the second time when ... while working on cache servers configuration I see rankings drop even thou response ...
1
vote
1
answer
74
views
Cache warming: is fetching the url of the pages enough?
Googling on the topic of cache warming, I see that most approaches consist in automated http calls (get requests) to the pages listed in the sitemap, using a script or command line tool.
But I suppose ...
7
votes
4
answers
13k
views
How to force users to see new site instead of the cached version?
We've just launched a new website. This was a complete redesign, including a change from a static HTML website, hosted on Server A, to a WordPress site hosted on Server B. (the relevance of that is ...
2
votes
0
answers
218
views
Set cache control from WAMP such that Firefox reports cached pages in the primed cache report
So I tried to allow cache by using
<meta http-equiv="Cache-control" content="public, max-age=31536000">
but I'm not sure if the content of my pages are actually being cached....
11
votes
2
answers
3k
views
Cloudflare: Cache static HTML when URL has Query String
Quick CloudFlare 'new user' question for you:
BACKGROUND: The HTML pages served up by my origin server never change. All dynamic content is download via JavaScript after the page is loaded in the ...
3
votes
3
answers
309
views
Does React JS Increase Page Load Time
Currently my website only uses HTML, CSS, and JavaScript.
I know that the React JS library is about 30 KB.
I am wondering if that 30 KB will be downloaded from my server by every user who visits my ...
1
vote
2
answers
37
views
Cache control headers vs using CDNs: What's the difference?
We want to implement caching to speed up the website performance.
What would be beneficial in this case - using CDN or Cache control HTTP headers?
0
votes
1
answer
32
views
Can a browser render a website and download its content to show without caching or saving anything to the computer? [closed]
Can a browser render a website without caching anything to the computer and just downloading the website ‘live’? I’m not sure if that is how it works, but in other words can a browser show a website ...
1
vote
0
answers
96
views
Understanding .htaccess cache rules [closed]
I talk about cache, and I don't know any cache system that is interested in keeping my files, for me, and for free. And, as I read, there are almost 5 other cache systems triggered when a user/client ...
0
votes
1
answer
45
views
Upon clicking on my website link a file downloads [closed]
I'm using hostinger VPS for WordPress hosting (CentOS 7 64bit with CyberPanel
). Wolf plan.
CPU core: 8
RAM: 16GB
Bandwidth: 12TB
But the catch is it's only accessible from my 1 profile on my PC (...
3
votes
1
answer
971
views
Reliability of using query strings to refresh cache
I have seen a number of articles suggesting the use of a query string to force refresh of a cached file. For example, style.css becomes style.css?ver=134, and you update the "version number"...
4
votes
1
answer
845
views
Tradeoffs around using a query string vs embedding version number in the CSS/JS files [duplicate]
I was reading articles and forum posts about using version numbers in CSS/JS files.
http://www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/
http://www.particletree.com/...
1
vote
1
answer
173
views
How to cache the html file of redirected website
I have a website A whose content gets updated every minute(Its content is related to stock price). However, because displaying the content of website A requires expensive computation, I want to create ...
2
votes
1
answer
211
views
How to use cdn cache with login status in menu?
On my website I have in the header a button called either "Login" or the name of the user if he is logged in with a small avatar. I don't use any cache, so the text for the header is ...
14
votes
2
answers
607
views
Control over the Internet Archive besides just "Disallow /"?
Are there any mechanisms to control what the Internet Archive archives on a site? I know to disallow all pages I could add:
User-agent: ia_archiver
Disallow: /
Can I tell the bot that I want them to ...
20
votes
1
answer
2k
views
How do I prevent Google from serving a cached version of my site? [duplicate]
From what I understand I can tell Google to remove pages from their archive if I add the header:
<meta name="ROBOTS" contents="NOARCHIVE" />
But won't this also remove the page from search ...
2
votes
1
answer
75
views
Why is the Google Analytics keyword report showing items that start with "cache:"?
When I check Google Analytics, I see some keywords like cache:2933b974en0J:https://example.com/subservice/well-digging
Why is this showing in google analytics?
What is the problem? How can I solve it?...
3
votes
0
answers
260
views
litespeed cache works but after some time site gets to redirect into redirect loop
I have a WP one page website on which i enabled light speed cache plugin which improved site performance but on the other side side goes into redirect loop which crashes the site. I was not able to ...
1
vote
1
answer
65
views
Can I tell who is accessing archive.org archived documents from my site from my server logs?
I currently host a website with a collection of some of my projects, where a few of them are currently undergoing a patent review process. I don't want these documents to be public (though they were ...
2
votes
2
answers
2k
views
Cache a resource across HTTP and HTTPS
Is there a way to specify that a resource should be cached when accessed over both HTTP and HTTPS? We have lots of static content that is initially served over HTTP and then re-served over SSL when ...
2
votes
1
answer
397
views
How does hash in file name affect google image search ranking?
In terms of cache optimization it is recommended for static files like images to cache them forever. In this case if you want to update an image you have to use a different file name so that the ...
1
vote
1
answer
233
views
Default cache-control directives (and behaviour) when header returns only private
I just checked the cache-control header returned by webmasters.stackexchange.com. The only directive present in the response is cache-control: private. In this case, what are the default values for ...
6
votes
2
answers
3k
views
Do ISPs cache HTTPS web pages?
Provided I have not set cache-control header to private, can ISPs cache web pages (by respecting max-age) served over HTTPS?
Sorry if I sound naive, but I wanted to know if ISPs somehow can cache and ...
0
votes
1
answer
30
views
Why do servers cache Web pages even though they know the Web page will be changed in the future?
For performance, some Web pages get cached. This is because the server can then speed up page load time:
Without a cached copy
+--SERVER--+ +--CLIENT-...
0
votes
2
answers
50
views
Using Cache to make website faster
I am building a website with node.js express webserver and i use Mongo db database.
On my website people can register a profile they can upload pictures and write text.
Now i hear often that many ...
0
votes
0
answers
154
views
Adsense not showing
This is kind of a strange glitch, but still..? I can’t figure it out. When I go to a question on my database almost every time, the ads don’t show, but when I change the url by adding page.php?...
2
votes
1
answer
981
views
Cache-Control for ads.txt, robots.txt and sitemap.xml files that are generated dynamically
I have some "static files" that I build on the fly, because they are generated dynamically.
ads.txt
robots.txt
sitemap.xml
What is the ideal Cache-Control for those files? PS: My server is ...
0
votes
3
answers
131
views
Optimizing data downloaded via 'link' media queries and asynchronous loading
I have a website that tries to make sensible use of media queries and avoid 'expensive' CSS for users of mobile devices. My eventual goal is to make it 'mobile-first' but for now, since it is based on ...
3
votes
1
answer
1k
views
Large number of hits from IP addresses that reverse lookup to "cache.google.com"
We are seeing a large amount of server requests by IP addresses claiming to be cache.google.com and they are coming from all sorts of (unexpected) countries too. Currently the FW blocks servers that ...
4
votes
1
answer
220
views
Use A.jpg if you have it in cache, otherwise use B.jpg?
Let's say I have one page big.html that uses
<img alt="big image" src="big.jpg" width="300" height="300" />
where big.jpg is indeed an image of 300 by ...
1
vote
0
answers
63
views
httpd.conf is cached and no editing is succesful [closed]
I am going to use the WSL system on Windows10 to create a website.
The distro is Ubuntu.
I put httpd.conf in /etc/apache2/conf-available
where there are these two lines (line 40):
Define SRVROOT "...
1
vote
2
answers
603
views
How ExpiresByType and Header set Cache-Control works together?
I have:
ExpiresActive On
ExpiresByType image/jpg "access 2 years"
And let's say:
<filesMatch ".(jpg|jpeg|png|gif)$">
Header set Cache-Control "max-age=31536000, ...
2
votes
1
answer
223
views
What's the difference between access and access plus in ExpiresByType directive?
I have seen:
ExpiresByType image/jpg "access 1 year"
But also:
ExpiresByType image/jpg "access plus 1 year"
So, what's the difference between those two lines ?
1
vote
1
answer
30
views
What types of files does ExpiresDefault include?
I have:
ExpiresActive On
ExpiresByType image/jpg "access 1 years"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType image/gif ...
1
vote
0
answers
28
views
Understanding mod_expires apache module [closed]
Working with htaccess is a new capitol for me. I have already read about mod_expires here https://httpd.apache.org/docs/current/mod/mod_expires.htm, but I'm stil confused.
I have the next code from ...
2
votes
0
answers
31
views
Deleting AMP cache: "The requested URL /update-cache/c/s/whatever was not found on this server"
I want to delete the AMP contents of my 'amp-en.products.example.com' website. I create the following URL to flush the cache
https://amp--en-products-example-com.cdn.ampproject.org/update-cache/c/s/...
1
vote
0
answers
156
views
My WordPress site is slow when I'm not using a VPN
I host a WordPress site which isn't behaving as I'd expect.
Its taking an age to load, sometimes timing out before its finished.
However, if I have my VPN (PIA) enabled, it loads immediately and is ...
32
votes
1
answer
21k
views
What happens if you don't set cache-control header?
What happens if you don't set the cache-control header? Does HTTP specify a default behaviour that clients should follow or is it up to the clients to decide?
In Chrome, I have seen some Javascript ...
0
votes
1
answer
35
views
WP site struggling to refresh
I used to think this was an issue with Google Chrome, when I would struggle to get pages to refresh with their latest CSS styles — despite me having the option set to disable cache when inspector ...
4
votes
3
answers
8k
views
Leverage Browser Caching for third party resources
I am optimising a website based on PageSpeed Insights guidelines. And one of the points is to Leverage Browser Caching.
And in this case - for the third party resources - like Google Analytics and ...
1
vote
1
answer
91
views
How to manage page caching to serve different AdSense units for Mobile and Desktop
I'm trying to cache the pages of my website, which are responsive and show the same contents for Desktop and for Mobile, with the exception of the location of the AdSense units if the visit is from ...
0
votes
0
answers
305
views
Why Google Cache Showing 404 on my React Base Webpages?
My web page is client-side rendered with React.
On hitting the cache, it is showing 404 instead of a rendered page.
Example Screenshot
When I inspect the Page URL on Search Console, Its parsing and ...
2
votes
1
answer
52
views
How to create a html file offline with app cache
We have an online html file that is accessible through the browser, we want this to be available offline and looking in to it the best thing would be using the App Cache with a manifest file.
I ...
1
vote
2
answers
3k
views
Does the WooCommerce function "Geolocate (with page caching support)" affect the Google ranking?
We're using the WooCommerce feature "Geolocate (with page caching support)" to display the correct currencies and taxes for each user based on his country while we're using a page cache plugin at the ...