Categories
Mastering Development System & Network

magento backend server response not going through varnish [closed]

I have installed Magento (apache) and varnish in a dedicated server. My req is going through the varnish and reaching the backend server But the response to the client does not come through the varnish server it’s coming directly from the backend server to my client browser varnish ip & port: 192.168.1.251 6081 apache magento […]

Categories
Mastering Development

How to send post request faster in python?

I feel like i tried everything and was not working for me. So what im trying to do is to send a post request which sends an id from a text files and the response is true/false. I need to find a way to send it faster because i had to send thousands of requests […]

Categories
Mastering Development System & Network

NGINX is forwarding HTTPS-traffic on some url’s incorrectly to HTTP on port 443

This is a Docker container with NGINX and Jenkins in the same container, running with supervisord. The Docker container is running behind an ELB in AWS ECS. NGINX is supposed to forward traffic from http://jenkins to https://jenkins. What happens is that traffic: https://jenkins/computer/ –> goes to https ✅ https://jenkins/computer –> goes to http and port […]

Categories
CMS Mastering Development Wordpress

How to be sure to get last page version without ANY cache?

As developer, you want all the time the last version files on page refresh action. As I understood, there are 3 kinds of cache : Browser cache (Browser settings) Website cache (WP plugins) Proxy cache (HTTP Headers) For some reasons, there are some days where I can removed browser cache, download a new browser on […]

Categories
Linux Mastering Development

curl –data-binary $’ inside a shell script

I have tried everything to do a curl from within a shell script. This curl has a –data-binary $’ part which I just can not get my script to recreate. It will move the $ inside the single quote for some weird reason. Any ideas how to fix it? –data-binary ‘$ curl -s -H ‘Connection: […]

Categories
Linux Mastering Development

curl –data-binary $’ inside a shell script

I have tried everything to do a curl from within a shell script. This curl has a –data-binary $’ part which I just can not get my script to recreate. It will move the $ inside the single quote for some weird reason. Any ideas how to fix it? –data-binary ‘$ curl -s -H ‘Connection: […]

Categories
Linux Mastering Development

curl –data-binary $’ inside a shell script

I have tried everything to do a curl from within a shell script. This curl has a –data-binary $’ part which I just can not get my script to recreate. It will move the $ inside the single quote for some weird reason. Any ideas how to fix it? –data-binary ‘$ curl -s -H ‘Connection: […]

Categories
Linux Mastering Development

Performing a “complex” curl inside a shell script

I have tried everything to do a curl from within a shell script. This curl has a –data-binary $’ part which I just can not get my script to recreate. It will move the $ inside the single quote for some weird reason. Any ideas how to fix it? –data-binary ‘$ curl -s -H ‘Connection: […]

Categories
Mastering Development System & Network

nginx caches the same file with versions

I added default setup for cache on Nginx. On usual refresh I receive 304 but in the cache folder there are additional files with versions like 02a9299b4f7a308b588544c1a735cc1e.0000000002, 02a9299b4f7a308b588544c1a735cc1e.0000000004 and so on. I assumed that the same cache entry should be used for the same query. But it creates additional files even on usual request. I […]

Categories
Mastering Development

Loop through Dataframe column of URLs and parse out html tag

This shouldn’t be too hard, although I can’t figure it, i’m betting i’m making a dumb mistake. Here’s the code that works on an individual link and returns the zestimate (the req_headers variable prevents throwing a captcha): req_headers = { ‘accept’: ‘text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8’, ‘accept-encoding’: ‘gzip, deflate, br’, ‘accept-language’: ‘en-US,en;q=0.8’, ‘upgrade-insecure-requests’: ‘1’, ‘user-agent’: ‘Mozilla/5.0 (Windows NT 10.0; […]