Skip to main content
Potato168
Explorer
December 21, 2025
Question

Web cache for my HTTP website is not working

  • December 21, 2025
  • 1 reply
  • 279 views

Hi all,

 

I just have a very simple port portward config for my wan:8888 to my Lan Web server:80

 

There is nothing special on that webserver, what just a page to say "Hi". Even is no HTML coding.

 

My Firewall policy for this server like below:

 

config firewall policy
edit 13
set name "Incoming-NAS-Web"
set srcintf "virtual-wan-link"
set dstintf "Lan"
set action accept
set srcaddr "all"
set dstaddr "VIP-NAS-T8888"
set schedule "always"
set service "ALL"
set utm-status enable
set inspection-mode proxy
set ssl-ssh-profile "CA"
set logtraffic all
set webcache enable
next
end

 

The port forward is:

 

config firewall vip
edit "VIP-NAS-T8888"
set mappedip "172.30.0.2"
set extintf "wan1"
set portforward enable
set extport 8888
set mappedport 80
next
end

 

Why my webcache keep 0 hit in this case?

 

123123.png

1 reply

kaman
Staff
Staff
December 22, 2025
Potato
New Member
December 22, 2025

But the KB you provide - 

Reverse proxy configuration

config firewall vip

edit Reverse_proxy_VIP

set extintf port2

set type static-nat

set extip 192.168.10.1

set mappedip 172.10.20.30

end

 

config firewall policy

edit 0

set srcintf port2

set srcaddr all

set dstintf port1

set dstaddr Reverse_proxy_VIP

set schedule always

set service HTTP HTTPS

set action accept

set webcache enable

set webcache-https ssl-server

end

 

That KB mentions the same way for the web cache purpose.

The only difference is HTTP and HTTPS.