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.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

httpd.conf is cached and no editing is succesful

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
2answers
27 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, ...
1
vote
1answer
17 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
1answer
13 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
0answers
20 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 ...
1
vote
0answers
50 views

Understanding htaccess cache rules [closed]

Ok. I've read a lot and I understand almost nothing. 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 ...
1
vote
1answer
27 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
0answers
13 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
0answers
75 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 ...
20
votes
1answer
9k 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
1answer
24 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
3answers
7k 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
1answer
25 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 ...
1
vote
1answer
37 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 ...
0
votes
0answers
25 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 ...
1
vote
0answers
49 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 ...
2
votes
1answer
19 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
2answers
1k 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 ...
0
votes
0answers
9 views

Google is caching my homepage almost properly but not other pages

My website is built on NodeJS with ReactJS as frontend and has server side rendering. Problem 1: Home page is cached properly by Google but other pages are cached without their CSS. Problem 2: Blogs ...
2
votes
1answer
120 views

When my origin serves a “304 Not Modified”, Cloudflare sends “200 OK” and makes the user download the page again

I'm using Cloudflare to cache certain APIs. I'm setting the below headers in my Origin server: Cache-Control: public, must-revalidate, max-age=300 Basically, I'm instructing the browser here to cache ...
1
vote
1answer
50 views

Why I am not seeing HTTP 304 response codes in my Apache logs?

Why I am not seeing HTTP 304 response code in my Apache logs even though my webpages are sending them? I've checked this in Chrome console: My goal is to see which browsers are successfully using ...
32
votes
6answers
56k 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 ...
0
votes
0answers
30 views

CloudFront For Wordpress Site On EC2

I have an EC2 instance, with LAMP Stack. I'm following this guide for CloudFront setup for a wordpress site. https://aws.amazon.com/blogs/startups/how-to-accelerate-your-wordpress-site-with-amazon-...
2
votes
1answer
198 views

Apache CacheIgnoreURLSessionIdentifiers to ignore select query string params

I am looking for a way of specifying a list of query parameters that I want to ignore for caching. Can I use the directive CacheIgnoreURLSessionIdentifiers to ignore select query parameters ...
2
votes
0answers
30 views

Google Search Console reports mobile friendly errors after enabling WordPress caching plugin

I tried to test my site in the google webmaster, I got Mobile usability issue But when I exclude the Googlebot in my cache plugin it's working properly! The speed is important so I am trying to send ...
0
votes
0answers
6 views

Caching static website with dynamic section?

I have a PHP (Laravel) website and I would like to cache the site using cloudflare. The page mydomain.com/index.php has static content except the navigation, this may contain either Sign In or the ...
1
vote
1answer
29 views

CDN cached PHP page vs HTML one - Loading speed

Is there any difference at all in terms of loading speed if we have a fully cached PHP generated site (by for example, using CloudFlare rules "Cache everything") and a HTML page? Cloudflare allows ...
0
votes
1answer
22 views

Why google is not caching my pages? [duplicate]

Some pages of my website chevy-cars.com are showing the cache button on the right side of the links in google listing and some pages are not for a long time. The pages that are showing cache button ...
269
votes
43answers
50k 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 ...
2
votes
1answer
32 views

I have one website that seems to be cached indefinitely on my Mac

I have a strange problem that I can't seem to find an answer to. I developed a website for a client on my dev server. I uploaded it to their live server when it was ready. This was 2-3 months ago. ...
0
votes
0answers
12 views

Error caching static js files in my htaccess file. What does this error mean? [duplicate]

I have this in my .htaccess file: <IfModule mod_expires.c> ExpiresActive on # Perhaps better to whitelist expires rules? Perhaps. ExpiresDefault "access plus 1 ...
4
votes
3answers
4k views

CloudFlare Not Sending If-Modified-Since Headers

I'm trying to reduce my server load by providing 304 Not Modified responses for content where appropriate. CloudFlare is my middle man, so they should be sending If-Modified-Since headers whenever a ...
3
votes
1answer
678 views

What headers used in request by google bot?

What headers used in request by google bot? Must be user agent, but what else? I'm interested in cache control headers, does bot try to get fresh page, but not from cache? The related question: Do ...
3
votes
1answer
5k views

How to make CloudFlare cache everything?

I want CloudFlare to cache everything, PHP files too, every request from the domain, I want it to cache it. Is this possible? (There are PHP scripts on the domain that print out images, JS and CSS, ...
5
votes
2answers
231 views

Do browsers send different HTTP headers on page reload so that server side caches can be flushed?

I'm implementing caching at the server application level, because my hosting doesn't provide Apache caching modules and it's not possible to use a reverse proxy there. Its cheap and fast hosting, so I ...
2
votes
3answers
3k views

JavaScript and CSS cached and not updating not updating from WAMP server even though “view source” shows most recent file

I have a WAMP server with PHP 7.2.10. When I change a file, for example .css, the changes is not visible in browser. When I "view source" via my browser (Ctrl+U) I get the updated latest version of ...
4
votes
1answer
6k views

Why is Chrome caching my login page?

Our literacy web site for kids with disabilities is causing some users issues with logging in. You can visit the site at http://tarheelreader.org/. If you login at https://tarheelreader.org/login/, ...
1
vote
0answers
25 views

rel=“dns-prefetch” / rel=“preconnect” vs far-future expiry headers…?

I've always been a big fan of far-futures expiry headers. First time visit on my site's homepage results in 40 HTTP requests, but a subsequent visit comes in at 1, with a response as snappy as you'd ...
1
vote
0answers
8 views

Storing session data between servers (and noob guidance) [closed]

First post here, I'm sure this information is somewhere on the web, but the problem is I'm such a noob I don't know what to search for. So, my problem is that I want to design a sign up API. Let's ...
1
vote
1answer
295 views

How to prime cache on all location of a cdn

I have just started using MaxCDN to serve static resources faster (images, js and css mostly). It works great, as long as the data is cached on the cdn's location that is close to where I live. But ...
3
votes
1answer
68 views

How to find one of my accelerated mobile pages that is cached by Google already?

For AMP (Accelerated mobile pages) pages, I know about the API to find out if a URL is cached or not. However, I'm having trouble finding one that is cached. I need to find a cached AMP URL to ...
0
votes
1answer
45 views

Firefox doesn't update cache of a downloadable zip file. Why?

I have a small website (hosted on a shared Linux/PHP server) where I allow users to download my software. It comes in a form of a ZIP file that people can download. I just noticed today after having ...
4
votes
2answers
71 views

Is it bad for SEO to embed static sections of a page in a JavaScript file so that they can be cached?

Is it a bad idea to embed unimportant static HTML code in a JavaScript file? Could it harm SEO? For example, the footer or header HTML code is constant and those sections load for many different ...
1
vote
2answers
3k views

What response headers encourage 304-Not Modified upon reloads?

When looking at the network waterfall in Firebug/Chrome/IE9, I keep seeing "200-OK" instead of "304-Not Modified" for many cache-able files (images, js, css) on this page, for example. I believe it ...
2
votes
2answers
3k views

Chrome doesn't remember vertical scroll position of my website when reloading the page?

Chrome seems to remember the last vertical scroll position of most websites when reloading the page or going back to it from another page. However, it's not working on my site. The site is a fairly ...
0
votes
1answer
61 views

Cannot find where my site is being cached! [closed]

So I have a bit of experience as a web master, but am at my whits end trying to find out what is caching my site. I cannot see any updates I make for the life of me. What I've tried: Clear ...
1
vote
0answers
80 views

How to allow Google fonts to be cached for more than one day?

I tried this code below, but I still see the message on Google Insights that the fonts have a expiration of 1d. AddType application/vnd.ms-fontobject .eot AddType application/x-font-ttf .ttf AddType ...
1
vote
0answers
32 views

Browsers load actual website from external server and keep in cache [closed]

So, currently, I'm using 000webhost to host my website, but they only allow 1000 MB to store all the files for my website, which IMO is a little small. So, what I want to accomplish is something like ...
2
votes
2answers
5k views

Is there any way to invalidate all memcache entries that begin with “User*”?

I recently made a change to my User class (which is memcached); is there any way I can invalidate all entries whose key begins with User without invalidating the entire cache? If not are there any ...
1
vote
0answers
903 views

Disable caching for subdomain on Cloudflare?

How can I disable caching for a subdomain on Cloudflare but keep SSL?

1
2 3 4 5 6