[squid-users] css not loading
Alex Gutiérrez Martínez
alex at dvm.esines.cu
Fri Sep 7 12:47:16 UTC 2018
Hello community, 3 days ago my bosses asked me to optimize access to
several pages prioritized in the company where i work, luckily for me
these pages are accessible via http. The problem is that after i put the
rules to cache the pages do not load the CSS and look in pure html.
After reversing the changes and doing a "squid -z" the problem persists.
Here i leave the configuration that i used to keep the pages in cache.
#########################################################################
#Cache #
#########################################################################
delay_initial_bucket_level 75
maximum_object_size 32 MB
#cache_dir aufs /var/cache/squid 10240 16 256
cache_dir aufs /opt/squid 1024 16 256
cache_mem 256 MB
cache_store_log /opt/squid/cache_store.log
coredump_dir /opt/squid/dump
minimum_expiry_time 550 seconds
############################
#uso cache
###########################
client_db off
offline_mode off
cache_swap_low 93
cache_swap_high 97
cache_replacement_policy heap LUDFA
memory_replacement_policy heap GDSF
maximum_object_size_in_memory 512 KB
half_closed_clients off
###############################################################################
# establecemos los archivos de volcado en /var/cache/squid/
coredump_dir /opt/squid/
###############################################################################
#Establecemos los patrones de refrescamiento de la cache #
#patron de refrescamiento -- tipo de archivo -- tiempo del objeto -- %de
refrescamiento -- tiempo #
#1440 minutos equivalen a 24 horas #
################################
#Refrescamiento de la cache
################################
refresh_pattern ^ftp: 1440 20% 4320
refresh_pattern ^gopher: 1440 0% 4320
refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 1440 90% 4320
override-expire ignore-no-store ignore-private
refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv)$ 1440 90%
43200 override-expire ignore-no-store ignore-private
refresh_pattern -i
\.(deb|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|tiff|pdf|xls|docx|xlsx|pptx)$
1440 90% 4320 override-expire ignore-no-store ignore-private
refresh_pattern -i \.index.(html|htm)$ 1440 10% 4320
refresh_pattern -i \.(html|htm|css|js)$ 1440 10% 4320
################################
#prioritized in the company
################################
refresh_pattern \.web1\.org\/? 1440 99% 14400 override-expire
override-lastmod ignore-reload ignore-private
refresh_pattern \.web2\.org\\/? 1440 99% 14400 override-expire
override-lastmod ignore-reload ignore-private
refresh_pattern \.web3\.org\\/? 1440 99% 14400 override-expire
override-lastmod ignore-reload ignore-private
PD: This is not a reverse proxy, i ony try to gain the best of my
internet connection
Thanks in advance
--
Saludos Cordiales
Lic. Alex Gutiérrez Martínez
Tel. +53 7 2710327
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20180907/9c50f8a5/attachment.html>
More information about the squid-users
mailing list