Search squid archive

Re: Thoughts on caching aspx jsp asp cgi-bin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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@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@xxxxxxxxx> 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@xxxxxxxxx> 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:
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.squid-cache.org/listinfo/squid-users

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux