[squid-users] Thoughts on caching aspx jsp asp cgi-bin
Robin Wood
squid at digi.ninja
Wed Jan 1 08:21:51 UTC 2025
I'm going to massively over simplify things here, but you can think of it
like this.
Files with html extensions are static web pages, you write them, put them
on the server, and they are served as they are, no changes.
Asp and the others are dynamic files, they are processed by an app on the
server before they are sent to the client. This app may do nothing, so the
page comes as it was, but usually it will add content. This content could
be to create a CMS page by pulling the page content from a database, it
could be your shopping orders pulled from your account, or it could be your
current bank statement.
Caching should never be done on anything that is specific to a single user,
so it's fine to cache public CMS content with an asp extension, but not
your bank statement.
There is more to it than that, but hopefully that gives you a general idea.
Robin
On Tue, 31 Dec 2024, 23:07 Jonathan Lee, <jonathanlee571 at gmail.com> wrote:
> Thanks I have to admit I am a student currently,
>
> I guess my last question is what do cgi-bin asp aspx asp files do inside
> of websites? The reason I ask this is the rule below I have seen the same
> rule on different websites so it must be the main ones that cause issues.
> Is it just for dynamic content?
>
> On Dec 31, 2024, at 14:47, Robin Wood <squid at digi.ninja> wrote:
>
> I would say that it depends on what the dynamic content is. If it is
> public content from a CMS and you are OK with it potentially being your
> cache age out of date, then caching it rather than reloading it from the
> database every page load is fine. If the pages are for anything sensitive,
> for example a user's account, then definitely do not cache it.
>
> Robin
>
> On Tue, 31 Dec 2024 at 17:55, Jonathan Lee <jonathanlee571 at gmail.com>
> wrote:
>
>> What are your thoughts? This is in relation to ssl intercept with
>> certificates installed and bump active.
>>
>> Keep in mind I am still a student and learning.
>> Is a rule like this recommended? Does anyone have a better version of
>> this?
>> Sent from my iPhone
>>
>> On Dec 30, 2024, at 14:10, Jonathan Lee <jonathanlee571 at gmail.com> wrote:
>>
>> Hello fellow Squid Users,
>>
>> Can you please help?
>>
>> What are your thoughts on this rule? Should cgi-bin aspx and jsp files be
>> excluded from the web-cache? They are dynamic correct? This could help
>> speed up systems right?
>>
>>
>> acl QUERY urlpath_regex cgi-bin \? asp aspx jsp
>>
>> ## Prevent caching jsp, cgi-bin etc
>> cache deny QUERY
>>
>> Ref:
>> Setting up Explicit Squid Proxy
>> <https://wiki.alpinelinux.org/wiki/Setting_up_Explicit_Squid_Proxy>
>> wiki.alpinelinux.org
>> <https://wiki.alpinelinux.org/wiki/Setting_up_Explicit_Squid_Proxy>
>> <favicon.png>
>> <https://wiki.alpinelinux.org/wiki/Setting_up_Explicit_Squid_Proxy>
>> <https://wiki.alpinelinux.org/wiki/Setting_up_Explicit_Squid_Proxy>
>>
>> _______________________________________________
>> squid-users mailing list
>> squid-users at lists.squid-cache.org
>> https://lists.squid-cache.org/listinfo/squid-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20250101/48bdf5b8/attachment.htm>
More information about the squid-users
mailing list