Comments (3)
There are a few reasons where this can happen. Is the page where you are seeing this publicly accessible? It would be very helpful to see this even without RequestReduce plugged in in order to further diagnose or explain this issue.
It can take RequestReduce anywhere from a second to a few minutes to complete all of its reductions. This depends on the amount of css/javascript you have and the number of background images your css contains. As it completes its reductions, subsequent reductions, subsequent requests will begin to see the reduced content. It is certainly possible for RequestReduce to have completed reducing the CSS but still be reducing Javascript. During this time, users should see the reduced css but the original javascript until RequestReduce completes the javascript reductions.
This also be impacted by near future expiring javascript. Currently, RequestReduce will generate reduced files for near future expiring javascript, but these will never be seen by the user. RequestReduce will flag the near future expiring url after it generates the reduction and the next time a request comes in, it will generate another reduction ignoring this url. At any rate, it is possible to take a few page views before all content is properly reduced and the user sees only the reduced content.
All of this can be further impacted if you are running RequestReduce in a web farm environment. Especially if you are not synchronizing via sql server.
Now, once the reductions are final accross each server, you should see consistent output and it should only change if you flush the cached content or if you change the css/javascript urls in the html. So if for some reason you have cache busting querystring parameters in your css or javascript or some other aspect of the url that changes on each request, RequestReduce considers each complete url and queues any urls that it has never processed and then show the original unaltered content to the user until that complete url has been reduced and is requested again.
from requestreduce.
Thanks Matt - it's good to know how it works in more detail. After deploying to Azure it started working immediatly once it had been CNAMEd to the same domain as the SSL certificate I was using (preventing the SSL errors in browsers) - is there any reason why this would be the case?
from requestreduce.
Hi Jamie. I'm glad it is working for you now! I'm especially gladto hear that it works on Azure. I have never tested it there and wondered if there might be odd permissions issues or other issues with the disk writing that RequestReduce does. I had another user that had problems with AppHarbor but we got those resolved.
The SSL cert issue actually makes perfect sense. RequestReduce processes your CSS and Javascript files by downloading them via http(or https if they are https links). So if you did not have a valid cert and RequestReduce was getting invalid or missing cert errors, the reductions would fail. Basically, if you can't navigate to your css and javascript links in a browser without error, neither can RequestReduce.
Just about an hour ago, I posted a new wiki page with troubleshooting and debugging tips for these exact kind of issues at https://github.com/mwrock/RequestReduce/wiki/RequestReduce-is-not-working.-I-don%27t-see-any-spriting-or-minification.-How-can-I-troubleshoot-this%3F. I wish that was available earlier when you encountered these problems.
Please create another issue or ping me on twitter (@Mwrockx).
from requestreduce.
Related Issues (20)
- Some JavaScript libraries causing failures HOT 2
- Strange result, double header, keeps original js/css HOT 3
- Timeout for the first request
- Use RequestReduce without IIS
- Is it possible to limit .js files to max size and split them automatically?
- RequestReduce not working (Exceptions in log file)
- RequestReduce messes up the calc() CSS function HOT 3
- cssProcessingDisabled spelled wrong on wiki page
- PageFilter works on http but not https
- Recorded Failures HOT 1
- Getting an error. Could not load file or assembly 'RequestReduce' or one of its dependencies. The system cannot find the file specified.
- ResponseTransformer slow for large pages
- Request Reduce throwing error in production environment HOT 1
- Failing to setup RR HOT 1
- RequestReduce throws (400) Bad Request Error
- HTML compression hides files to RequestReduce
- Strong Name - signing the assembly
- RequestReduce having issues with Umbraco backoffice HOT 1
- Unable to run the RequestReduce in Medium Trust Shared hosting environment
- CDN config HOT 1
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 requestreduce.