Comments (4)
FWIW, for the purpose of our use case.. we don't want the response to ever be served from cache. As such, using no-cache and unique ETag on each request is both simplest and easiest.
from ga-beacon.
👍
Any chance you'd be up for putting together a PR? :)
from ga-beacon.
Any chance you'd be up for putting together a PR? :)
So far it's just an idea, one would have to experiment on it to see if it changes anything. For example, the beacon might change ETag
periodically, by feeding the current second (or unix_time_seconds() / X
) into ETag
. It would be interesting to see if that'll do anything to the beacon-generated AdSense stats.
On one hand, ETag
shouldn't do anything in presence of Cache-Control: no-cache
. On the other hand, we have statements from GitHub programmers (?) that ETag
is needed in order not to screw things up. It's weird, but maybe it's real. Maybe the lack of ETag
is screwing no-cache
because of some non-standard caching.
Another thing to try would be Cache-Control: must-revalidate
with a changing ETag
, instead of just Cache-Control: no-cache
. It might use a different code path in github/fastly and so improve the amount of requests that goes directly to the beacon instead of being cached.
That said, I don't have the infrastructure (Go compiler, a working app-engine instance of the beacon) to work on it properly. Dubbing in that would be supper inefficient. Like nine times to one, where nine is the time to figure out the environment and one is the time to work on the problem.
from ga-beacon.
Resolved via #54.
from ga-beacon.
Related Issues (20)
- Not reporting hits with /path in URL HOT 1
- Custom Badge/Image HOT 1
- Unable to deploy on own app engine HOT 6
- What's the purpose? HOT 1
- Not working anymore?
- How works this with Camo? HOT 2
- Add a Dockerfile HOT 1
- Is this still working? HOT 4
- Analytics are logging excluded (filtered) IP HOT 2
- Only RealTime Reports Work HOT 1
- Is it possible to use ga-beacon in gist? HOT 1
- Cross Domain Tracking Support HOT 1
- track city/country HOT 1
- Not able to deploy with Go 1.12+ HOT 6
- ga-beacon.appspot.com is down HOT 1
- Go 1.9 is no longer available. Please refer to https://goo.gl/aESk5L for more information. HOT 2
- Are you sure it's unusable with Github? HOT 3
- ga-beacon.appspot.com is down HOT 9
- Could not import "google.golang.org/appengine/delay"
- ban
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ga-beacon.